Description Usage Arguments Details Value Author(s) Examples
Extract chi-square and writes it in APA style
1 | chisq(amod,pos=1)
|
amod |
a object of class |
pos |
the row of the object amod referring to the position of the test to be extracted. Default pos=2 so it is the first effect in objects referring to variables effects, or the comparison of two model for anova like objects. |
Returns the chi-square value with degrees of freedom and p-value. It extracts the values in different ways depending on the object passed as input. When the model is of class lm
, glm
, or glmer
, anova(x,test="Chisq")
is computed and the chisq, df, and p-value are extracted. When the object is of the class anova
the object is tested for the presence of "deviance", which means that the anova has been ran with the test="Chisq"
option. Then the values are extracted. If the object is of class "htest" the chisq is extracted from "statistic" field of the object. If "pos" is specified, the values in row=pos of the object are extracted, otherwise pos=2 is used, so it is the first effect in objects referring to variables effects, or the comparison of two model for anova like objects. .
a string with Chisq, df, p.value and valid N is returned
Marcello Gallucci
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.