R/bias_se_x.R

Defines functions calculate_se_x

Documented in calculate_se_x

#' Calculate SE x
#'
#' @param nrun Run number
#' @param nrep Number of repetitions per run n0
#' @param SWL SWL from aov table
#' @param SR SR from aov table
#'
#' @return SE X
calculate_se_x <- function(nrun, nrep, SWL, SR){
  f <- 1/nrun
  s <- SWL^2 - ((nrep-1)/nrep) * (SR^2)

  se_mean <- sqrt(f*s)
  return(round(se_mean, 2))
}

Try the CLSIEP15 package in your browser

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

CLSIEP15 documentation built on Nov. 11, 2023, 1:08 a.m.