Hi Michael,
You can just fit your model, and then use anova() to get the Sum of Squares.
## fit and store model
m <- lm(mpg ~ hp * wt * vs, data = mtcars)
## store ANOVA from model
msum <- anova(m)
## divide all Sums of Squares by the sum() of the Sums of Squares
msum[["Sum Sq"]]/sum(msum[["Sum S
Dear all,
is there a convenient way to determine the effect size for a regression
coefficient in a multiple regression model?
I have a model of the form lm(y ~ A*B*C*D) and would like to determine
Cohen's f2 (http://en.wikipedia.org/wiki/Effect_size) for each predictor
without having to do it manu
2 matches
Mail list logo