Learn R Programming

yhat (version 2.0-4)

effect.size: Effect Size Computation for lm

Description

Creates adjusted effect sizes for linear regression.

Usage

effect.size(lm.out)

Value

Returns adjusted R-squared metric.

Arguments

lm.out

Output from lm class object

Author

J. Kyle Roberts <kyler@smu.edu>

Details

The function effect.size produces a family of effect size corrections for the R-squared metric produced from an lm class object. Suggestions for recommended correction are supplied, based on Yin and Fan (2001).

References

Yin, P., & Fan. X. (2001) Estimated R^2 shrinkage in multiple regression: A comparison of different analytical methods. The Journal of Experimental Education, 69, 203-224.

See Also

regr,yhat

Examples

Run this code
     if (require("MBESS")){
     data(HS)
     attach(HS)
     lm.out<-lm(t20_deduction~t10_addition*t24_woody_mccall)
     effect.size(lm.out)
     detach(HS)
     }

Run the code above in your browser using DataLab