anova | R Documentation |
Performs a likelihood ratio test between two nested joint models.
## S3 method for class 'jmcs'
anova(object, object2, digits = 4, ...)
object |
an object inheriting from class |
object2 |
an object inheriting from class |
digits |
the number of significant digits to use when printing. Default is 4. |
... |
further arguments passed to or from other methods. |
A table to summarize the likelihood ratio test.
Shanpeng Li lishanpeng0913@ucla.edu
jmcs
# Fit a joint model
fit <- jmcs(ydata = ydata, cdata = cdata,
long.formula = response ~ time + x1,
surv.formula = Surv(surv, failure_type) ~ x1 + x2,
random = ~ time| ID)
fit2 <- jmcs(ydata = ydata, cdata = cdata,
long.formula = response ~ time + gender + x1 + race,
surv.formula = Surv(surv, failure_type) ~ x1 + gender + x2 + race,
random = ~ time| ID)
anova(fit, fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.