Description Usage Arguments Value Examples
View source: R/ctGenerateFromFit.R
Generates data according to the model estimated in a ctsemFit object.
1 2 3 4 5 6 7 8 | ctGenerateFromFit(
fit,
timestep = "asdata",
n.subjects = 100,
timerange = "asdata",
predictorSubjects = "all",
...
)
|
fit |
object of class ctsemFit as returned from ctFit. |
timestep |
positive numeric value indicating the time interval to use for data generation. |
n.subjects |
integer. Number of subjects worth of data to generate |
timerange |
either 'asdata' to calculate range based on data in fit object, or vector of length 2 specifying min and max times for generation. |
predictorSubjects |
vector of integers, or string 'all', defining which subjects to sample time dependent and independent predictors from. |
... |
parameters to pass to ctGenerate function, such as wide=FALSE. |
matrix of generated data
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.