Description Usage Arguments Value Examples
View source: R/ModelComparison.R
A function to compare lrm models estimated over imputed datasets
1 | pool.compare.lrm(fit1,fit0,data,method = c("wald", "likelihood"))
|
method |
method used for comparison - wald or likelihood |
model1 |
|
model0 |
|
dataset |
dataset analyses are run on |
A list containing Dm, dfs and pvalue
1 2 3 | Mh1_sampleweight_lrm <- with(imputed_mcs2, lrm(recoded_mh_d1 ~ standardised_bw + standardised_gest + sex_combine + ethnic_combine + new_langcombine + highested + standardised_wealth, weights = weight_combine))
Mh2_sampleweight_lrm <- with(imputed_mcs2, lrm(recoded_mh_d1 ~ standardised_bw + standardised_gest + sex_combine + ethnic_combine + new_langcombine + highested + standardised_wealth + teen_mum2 + ms_combine + standardised_maternal_mh + standardised_conduct + standardised_emotional,weights = weight_combine))
pool.compare.lrm(Mh2_sampleweight_lrm,Mh1_sampleweight_lrm,imputed_mcs2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.