R/jkestimates.R

Defines functions jkestimates

## File Name: jkestimates.R
## File Version: 0.11


################################################
# jkestimates
jkestimates <- function( est, parsM, fayfac )
{
    RR <- ncol(parsM)
    M_pars <- rowMeans( parsM  )
    parsMres <- parsM - M_pars
    # variance covariance matrix of estimators
    vcov_pars <- tcrossprod( parsMres )
    dfr <- data.frame( "est"=est,
            "jkest"=est - fayfac * (RR-1) * ( M_pars - est) )
    dfr$jkse <- sqrt( diag( vcov_pars ))
    res <- list("dfr"=dfr, "vcov_pars"=vcov_pars )
    return(res)
}
################################################

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.