R/Rsquare2Lambda.R

"Rsquare2Lambda" <-
function(R2=NULL, N=NULL)
{
if(is.null(R2) | is.null(N)) stop("You must specify \'R2\' (i.e., R Square) and \'N\' (i.e., sample size) in order to calculate the noncentraility paramter.")
return((R2/(1-R2))*N)
}

Try the MBESS package in your browser

Any scripts or data that you put into this service are public.

MBESS documentation built on Oct. 26, 2023, 9:07 a.m.