| estimate_unit_information_sd | R Documentation |
Estimates the unit information standard deviation (UISD) from sample sizes and standard errors. The UISD is used to scale weakly informative prior distributions for meta-analytic parameters.
estimate_unit_information_sd(sei, ni)
sei |
a complete numeric vector of strictly positive standard errors for each study. |
ni |
a complete numeric vector of strictly positive sample sizes for
each study, with the same length as |
The unit information standard deviation is computed following Equation 6 in \insertCiterover2021weakly;textualRoBMA:
\text{UISD} = \sqrt{\frac{\sum n_i}{\sum \text{se}_i^{-2}}}
where n_i is the sample size and \text{se}_i is the standard error
for each study.
This function is useful when you want to compute the UISD once and pass it
to multiple analyses via the prior_unit_information_sd argument in
brma() or related functions. This ensures consistent prior scaling
across analyses performed on different subsets of the same data.
Returns a single numeric value representing the estimated unit information standard deviation.
# Example with simulated data
sei <- c(0.2, 0.3, 0.25, 0.15)
ni <- c(50, 30, 40, 80)
estimate_unit_information_sd(sei = sei, ni = ni)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.