calculate_s_error {spdesign} | R Documentation |
S-error
Description
Calculates a "lower bound" sample size to obtain theoretically significant parameter estimates under the assumption that the priors are correct.
Usage
calculate_s_error(design_vcov, p, return_all, significance)
Arguments
design_vcov |
A variance-covariance matrix returned by
|
p |
Prior values |
return_all |
If 'TRUE' return a K or K-1 vector with parameter specific error measures. Default is 'FALSE'. |
significance |
A t-value corresponding to the desired level of significance. The default is significance at the 5 t-value of 1.96. |
Value
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.
[Package spdesign version 0.0.4 Index]