Description Usage Arguments Value Warning See Also Examples
Compute analysis of variance tables for one or two mixture model objects.
1 2 |
object |
an object of class |
mixobj2 |
an object of the same type to be compared with |
... |
additional objects of the same type. |
An object of class "anova"
inheriting from class
"data.frame"
. When given a single argument this
function produces a table which tests whether the model
is significant. The table contains the residual
degrees of freedom, Chi-square statistic and P value.
If the class of the argument is not "mix"
, this function
returns NULL
. When given two objects, it tests the
models against one another and lists them in the order
of number of parameters fitted. For the model with
fewer parameters fitted, the change in degrees of
freedom is given. This only make statistical sense if
the models are nested. If one of arguments does not
belong to the class "mix"
, the function will give
the anova table for the other argument; if both of
them do not, it returns NULL
.
The comparison between two models will only be valid if they are fitted to the same dataset. And the two models should be nested.
The model fitting function mix
, the generic function
anova
.
1 2 3 4 5 6 7 8 9 | data(pike65) # load the grouped data `pike65'
data(pikepar) # load the initial values of parameters for the data `pike65'
fitpike3 <- mix(pike65, pikepar, "lnorm", mixconstr(conmu = "MFX",
fixmu = c(FALSE, FALSE, FALSE, FALSE, TRUE), consigma = "CCV"), emstep = 3)
anova(fitpike3)
fitpike4 <- mix(pike65, pikepar, "lnorm", mixconstr(consigma = "CCV"), emsteps = 3)
anova(fitpike4)
anova(fitpike3, fitpike4)
anova(fitpike4, fitpike3)
|
Analysis of Variance Table
Df Chisq Pr(>Chisq)
Residuals 15 11.962 0.6819
Analysis of Variance Table
Df Chisq Pr(>Chisq)
Residuals 14 11.948 0.6105
Analysis of Variance Table
Df Chisq Pr(>Chisq)
Hypothesis 1 0.0139 0.9063
Residuals 14 11.9477 0.6105
Analysis of Variance Table
Df Chisq Pr(>Chisq)
Hypothesis 1 0.0139 0.9063
Residuals 14 11.9477 0.6105
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.