powered by
Chooses between nested models.
nestselect(aics, mod1, mod2, dfdiff, pval = 0.05)
Named aic vector with losing model removed.
Named vector of model aics (can include extra models).
Name of model 1, the model with fewer degrees of freedom.
Name of model 2, the model with more degrees of freedom.
Absolute difference in number of degrees of freedom (i.e. the difference in parameters).
P-value for nested model test.
aics = c(-5,-6,-3) names(aics) = c("poly1", "poly2", "hill") nestselect(aics, "poly1", "poly2", 1) aics = c(-5,-7,-3) names(aics) = c("poly1", "poly2", "hill") nestselect(aics, "poly1", "poly2", 1)
Run the code above in your browser using DataLab