Description Usage Arguments Value Author(s) References Examples
Partial Likelihood Ratio Test for non-nested coxph
models
1 |
object1 |
|
object2 |
|
nested |
specify if models are nested, default is |
adjusted |
specify if test statistic for non-nested models should be adjusted for different complexities of the models using AIC/BIC-type adjustment. BIC uses number of events instead of number of observations. Possible values are |
an object of class finetest
Thomas Hielscher
Fine J.P., Comparing nonnested Cox models, Biometrika (2002), 89, 3, 635-647.
Vuong Q.H., Likelihood Ratio Tests for Model Selection and Non-Nested Hypotheses, Econometrika (1989), 57, 2, 307-333.
Merkle E.C. and You D., Testing Nonnested Structural Equation Models, Psychological Methods (2016), 21, 2, 151-163.
Edgar Merkle and Dongjun You (2018). nonnest2: Tests of Non-Nested Models. R package version 0.5-1.
P. Duchesne, P. Lafaye de Micheaux, Computing the distribution of quadratic forms: Further comparisons between the Liu-Tang-Zhang approximation and exact methods, Computational Statistics and Data Analysis, Volume 54, (2010), 858-862
Schwarz G. (1978). Estimating the Dimension of a Model. Annals of Statistics, 6, 461.464.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
### example data set from Fine paper, section 5
require("survival")
pbc <- subset(pbc, !is.na(trt))
mod1 <- coxph(Surv(time, status==2) ~ age, data=pbc, x=T)
mod2 <- coxph(Surv(time, status==2) ~ age + albumin + bili + edema + protime, data=pbc, x=T)
mod3 <- coxph(Surv(time, status==2) ~ age + log(albumin) + log(bili) + edema + log(protime), data=pbc, x=T)
plrtest(mod3, mod2, nested=F) # non-nested models
plrtest(mod3, mod1, nested=T) # nested models
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.