Description Usage Arguments Value Methods (by class) Examples
Calculate Eta coefficients, known as "Correlation ratios". Squared value of Eta has an interpretation in terms of the proportion of explained variance. The interpretation follows from a problem of predicting values of y. The value of the Eta^2 is the proportion by which the error of predicting values of y is reduced by using the information provided by x.
1 2 3 4 5 6 7 8 9 10 |
object |
the R object |
... |
arguments passed to other methods |
fac |
vector for conditioning variable |
pop_var |
logical, whether to use population or sample variance in the calculation |
Values of eta and partial eta coefficients.
default
: The default method expect vectors. The function requires
additional argument fac
– a vector of the same length as object
. The
result is a value (vector of length 1) of the Eta^2 assuming
that we want to predict the values of object
with the values of fac
using the so called "Type I regression of means". For two variables y
and x the Eta is given by the formula:
Eta^2 = ( D^2(y) - E[D^2(y|x)] ) / D^2(y)
anova
: For objects of class anova
the function calculates the
Eta's and Partial Eta Squares for all effects in the given model. In this
setting the eta squares for the given effect are equal to:
SSeffect / SStotal
where SS are appropriate Sums of Squares. The “Partial Eta Squares” for the given effect are equal to:
SSeffect / (SSeffect+SSresid)
The function returns a data frame with columns Eta
and Partial Eta
with
a row for every term in the model.
lm
: For objects of class lm
the function is applied on the
result of calling anova()
.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.