View source: R/model-comparison.R
| anova.beezdemand_nlme | R Documentation |
Compare nested NLME demand models using likelihood ratio tests.
## S3 method for class 'beezdemand_nlme'
anova(object, ...)
object |
A |
... |
Additional |
For NLME models, this method delegates to nlme::anova.lme() on the
underlying model objects when possible.
An object of class anova.beezdemand containing model comparison statistics.
data(ko)
fit1 <- fit_demand_mixed(ko, y_var = "y_ll4", x_var = "x",
id_var = "monkey", equation_form = "zben",
random_effects = Q0 ~ 1)
fit2 <- fit_demand_mixed(ko, y_var = "y_ll4", x_var = "x",
id_var = "monkey", equation_form = "zben",
random_effects = Q0 + alpha ~ 1)
anova(fit1, fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.