Skip to contents

eta^2 = tau^2(fitted) / tau^2(Y) with the variance or the Winsorized variance.

Usage

ExplPow(y, yhat, measure = c("variance", "winsorized"), tr = 0.2)

Arguments

y, yhat

Outcomes and fitted values.

measure

"variance" or "winsorized".

tr

Winsorizing proportion.

Value

list(eta2, eta).

References

Wilcox, R. R. (2017). Modern Statistics for the Social and Behavioral Sciences, 2nd ed. Eq (14.10).

Examples

ExplPow(1:4, 1:4)$eta2
#> [1] 1