Calculates a "lower bound" sample size to obtain theoretically significant parameter estimates under the assumption that the priors are correct.
calculate_s_error(design_vcov, p, return_all, significance)
A variance-covariance matrix returned by
derive_vcov
or returned by an estimation routine. The matrix
should be symmetrical and K-by-K
Prior values
If `TRUE` return a K or K-1 vector with parameter specific error measures. Default is `FALSE`.
A t-value corresponding to the desired level of significance. The default is significance at the 5 t-value of 1.96.
A vector giving the "minimum" sample size for each parameter or a single number with the smallest sample size needed for all parameters to be theoretically significant.