findWidthCRDES {MBESS}R Documentation

Find the width of CI of standardized condition means difference

Description

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).

Usage

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)

Arguments

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 TRUE, a single covariate is included into the model. If FALSE, the no-covariate model is used.

iccz

The intraclass correlation of the covariate (used when covariate = TRUE). If iccz = 0, the within-level covariate will be only used. If iccz = 1, the between-level covariate will be only used.

r2within

The proportion of variance explained in the within level (used when covariate = TRUE)

r2between

The proportion of variance explained in the between level (used when covariate = TRUE)

totalvarz

The total variance of the covariate (used when covariate = TRUE)

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 TRUE to use it.

numProc

The number of processors to be used when multicore=TRUE. If it is not specified, the package will use the maximum number of processors in a machine.

conflevel

The desired level of confidence for the confidence interval

Value

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

Author(s)

Sunthud Pornprasertmanit (University of Kansas; psunthud@ku.edu)

References

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.

Examples

## 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)

[Package MBESS version 3.3.3 Index]