R <- 10000
par_ests <- cbind(rnorm(R), rnorm(R, sd=1/10),
rnorm(R, sd=1/15))
colnames(par_ests) <- paste0("par", 1:3)
(SDs <- colSDs(par_ests))
SEs <- cbind(1 + rnorm(R, sd=.01),
1/10 + + rnorm(R, sd=.01),
1/15 + rnorm(R, sd=.01))
(E_SEs <- colMeans(SEs))
RSE(SEs, par_ests)
# equivalent to the form
colMeans(SEs) / SDs
Run the code above in your browser using DataLab