R/bootSEM.R

Defines functions bootMeanSE

Documented in bootMeanSE

#' Miscellaneous helpers
#'
#' BootstrappedSEM
#' @export

bootMeanSE <- function(v,nsim=1000,...){
	bootmean <- function(v,i) mean(v[i],na.rm=T,...)
	bootRes <- boot::boot(v,bootmean,nsim)
	return(sd(bootRes$t,na.rm=T))
}
mattelisi/mlisi documentation built on Oct. 13, 2019, 5:59 p.m.