R/sirt_rsquared.R

Defines functions sirt_rsquared

## File Name: sirt_rsquared.R
## File Version: 0.03

sirt_rsquared <- function(x, expl, na.rm=TRUE)
{
    res <- 1 - sum( ( x - expl)^2, na.rm=na.rm ) / sum( x^2, na.rm=na.rm)
    return(res)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.