http://www.inside-r.org/packages/cran/JM/docs/simulate这是这个函数的用法,但我没有看懂赋值的方法。尤其是里面的thetas,formulas 和data
说明是list,但是我不知道该以什么格式去赋值。
有大神可以教教吗?help文件下的example没有用。
| simulate {JM} | R Documentation |
Simulate from Joint Models.Descriptionsimulate 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, ...)