model_comparison {dlim} | R Documentation |
Model Comparison
Description
Compare models to test for interaction
Usage
model_comparison(fit, null = "none", x, B, conf.level = 0.95)
Arguments
fit |
dlim object (must be fit with REML) |
null |
specify the type of interaction in the null model, "none" for no interaction (standard DLM), "linear" for linear interaction (DLIM-linear), or "quadratic" for quadratic interaction |
x |
exposure |
B |
number of bootstrap samples |
conf.level |
The confidence level (class " |
Value
The function returns a decision to either reject or fail to reject the null model. The object returned has an attribute "pval" that is the empirical bootstrap p-value
See Also
Type vignette('dlimOverview')
for a detailed description.
[Package dlim version 0.2.1 Index]