Learn R Programming

configural (version 0.1.5)

n_effective_R2: Effective sample size

Description

Estimate an effective sample size for a statistic given the observed statistic and the estimated sampling error variance (cf. Revelle et al., 2017).

Usage

n_effective_R2(R2, var_R2, p)

Value

An effective sample size.

Arguments

R2

Observed R^2^ value

var_R2

Estimated sampling error variance for R^2^

p

Number of predictors in the regression model

Details

n_effective_R2 estimates the effective sample size for the R^2^ value from an OLS regression model, using the sampling error variance formula from Cohen et al. (2003).

References

Revelle, W., Condon, D. M., Wilt, J., French, J. A., Brown, A., & Elleman, L. G. (2017). Web- and phone-based data collection using planned missing designs. In N. G. Fielding, R. M. Lee, & G. Blank, The SAGE Handbook of Online Research Methods (pp. 578–594). SAGE Publications. tools:::Rd_expr_doi("10.4135/9781473957992.n33")

Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.). Routledge. tools:::Rd_expr_doi("10.4324/9780203774441")

Examples

Run this code
n_effective_R2(0.3953882, 0.0005397923, 5)

Run the code above in your browser using DataLab