R/sigma_ref.R

Defines functions sigma_ref

Documented in sigma_ref

# computation of the reference standard deviation as suggested in equation (7) by Sorbye and Rue (scaling)
# sigma_ref by geometric mean of sigmai
sigma_ref<-function(df){
  # input:
  # df: data frame with one column "sigma" containing the standard deviations sigmai in each study
  # output:
  # reference standard deviation as suggested in equation (7) by Sorbye and Rue (scaling)
  return(exp(mean(log(df$sigma))))
}

Try the ra4bayesmeta package in your browser

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

ra4bayesmeta documentation built on Oct. 7, 2023, 1:07 a.m.