楼主: 煽情养花
1364 0

[问答] 【求助】R中JM包内置simulateJM{}怎么用? [推广有奖]

  • 0关注
  • 0粉丝

初中生

28%

还不是VIP/贵宾

-

威望
0
论坛币
2 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
219 点
帖子
6
精华
0
在线时间
15 小时
注册时间
2016-5-19
最后登录
2019-3-26

楼主
煽情养花 发表于 2016-5-25 14:29:02 |AI写论文
10论坛币

http://www.inside-r.org/packages/cran/JM/docs/simulate这是这个函数的用法,但我没有看懂赋值的方法。尤其是里面的thetas,formulas 和data
说明是list,但是我不知道该以什么格式去赋值。
有大神可以教教吗?help文件下的example没有用。

simulate {JM}

R Documentation

Simulate from Joint Models.Description

simulate longitudinal responses and event times from joint models

UsagesimulateJM(nsim, nsub, thetas, times, formulas, Data = NULL,     method = c("weibull-PH", "weibull-AFT", "piecewise-PH", "spline-PH"),     lag = 0, censoring = "uniform", max.FUtime = NULL, seed = NULL,     return.ranef = FALSE)## S3 method for class 'jointModel'simulate(object, nsim, seed = NULL, times = NULL,     Data = NULL, ...)

关键词:simulate Late Mul IMU ATE example method 我不知道

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-8 06:30