simPA | R Documentation |
Simulates minutes of physical activity per day with realistic missing data patterns
simPA(n, type, beta, minday, maxday)
n |
Number of individuals in the simulated data. |
type |
Whether to simulate data from informative/non-informative observation/censoring patterns. Options: i) 'inf', ii) 'noninf'. |
beta |
True coefficient for the binary covariate. |
minday |
Minimun number of observation days. |
maxday |
Maximum number of observation days. |
A simulated dataset is returned with four columns: [ID, day, min, x1, z].
Jaejoon Song <jjsong2@mdanderson.org>
##
## Simulauting data for a single individual
## with noninformative observation patterns
##
simdata <- simPA(n=1, beta=1.5,type='noninf', minday=6, maxday=7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.