| findWidthCRDES {MBESS} | R Documentation |
Find the width of CI of standardized condition means difference. Users may use the model with one covariate or without any covariates. See further details at Pornprasertmanit and Schneider (2010, submitted).
findWidthCRDES(nrep, nclus, ntreatclus, nindiv, iccy, es, estype = 1, totalvar=1, covariate=FALSE, iccz=NULL, r2within=NULL, r2between=NULL, totalvarz = 1, assurance=NULL, seed=123321, multicore=FALSE, numProc=NULL, conflevel = 0.95)
nrep |
The number of replications used in a priori Monte Carlo simulation |
nclus |
The total number of clusters |
ntreatclus |
The number of treatment clusters |
nindiv |
The number of individuals in each cluster (cluster size) |
iccy |
The intraclass correlation of the dependent variable |
es |
The amount of effect size |
estype |
The type of effect size. There are only three possible options: 0 = the effect size using total standard deviation, 1 = the effect size using the individual-level standard deviation (level 1), 2 = the effect size using the cluster-level standard deviation (level 2) |
totalvar |
The amount of total variance in the dependent variable |
covariate |
If |
iccz |
The intraclass correlation of the covariate (used when |
r2within |
The proportion of variance explained in the within level (used when |
r2between |
The proportion of variance explained in the between level (used when |
totalvarz |
The total variance of the covariate (used when |
assurance |
The degree of assurance, which is the value with which confidence can be placed that describes the likelihood of obtaining a confidence interval less than the value specified (e.g, .80, .90, .95) |
seed |
A desired seed number |
multicore |
Use multiple processors within a computer. Specify as |
numProc |
The number of processors to be used when |
conflevel |
The desired level of confidence for the confidence interval |
The width of CI of standardized condition means difference. If assurance = NULL, the value represents the expected width. If assurance is specified as a number, the width value will have the proprotion of the specified assurance that the the likelihood of obtaining a confidence interval less than the outcome width
Sunthud Pornprasertmanit (University of Kansas; psunthud@ku.edu)
Pornprasertmanit, S., & Schneider, W. J. (2010). Efficient sample size for power and desired accuracy in Cohen's d estimation in two-group cluster randomized design (Master Thesis). Illinois State University, Normal, IL.
Pornprasertmanit, S., & Schneider, W. J. (submitted). Accuracy in parameter estimation in two-condition cluster randomized design.
## Not run: # The number of replications should be much higher than 20. findWidthCRDES(20, 70, 35, 20, 0.05, 0.2, estype = 1) ## End(Not run)