R/orlm.forboot.R

Defines functions orlm_forboot

Documented in orlm_forboot

orlm_forboot <- function(data, indices, index=index, ...){
    ## df.error chosen arbitrary, since it is irrelevant for b.restr
    dat <- data[indices,]
    bx <- orlm(cov.wt(dat[,-1],wt=dat$wt)$cov, df.error=10, index=index, ...)$b.restr
    ## intercept
    bi <- mean(dat[,2]) - sum(colMeans(dat[,3:ncol(dat)])*bx)
    return(c(bi,bx))
}

Try the ic.infer package in your browser

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

ic.infer documentation built on Oct. 5, 2023, 5:09 p.m.