ss.aipe.crd {MBESS}R Documentation

Find target sample sizes for the accuracy in unstandardized conditions means estimation in CRD

Description

Find target sample sizes (the number of clusters, cluster size, or both) for the accuracy in unstandardized conditions means estimation in CRD. If users wish to seek for both types of sample sizes simultaneously, an additional constraint is required, such as a desired width or a desired budget.

Usage

ss.aipe.crd.nclus.fixedwidth(width, nindiv, prtreat, tauy=NULL, sigma2y=NULL, 
	totalvar=NULL, iccy=NULL, r2between = 0, r2within = 0, numpredictor = 0, 
	assurance=NULL, conflevel = 0.95, cluscost=NULL, indivcost=NULL)
ss.aipe.crd.nindiv.fixedwidth(width, nclus, prtreat, tauy=NULL, sigma2y=NULL, 
	totalvar=NULL, iccy=NULL, r2between = 0, r2within = 0, numpredictor = 0, 
	assurance=NULL, conflevel = 0.95, cluscost=NULL, indivcost=NULL)
ss.aipe.crd.nclus.fixedbudget(budget, nindiv, cluscost = 0, indivcost = 1, 
	prtreat = NULL, tauy=NULL, sigma2y=NULL, totalvar=NULL, iccy=NULL, r2between = 0, 
	r2within = 0, numpredictor = 0, assurance=NULL, conflevel = 0.95)
ss.aipe.crd.nindiv.fixedbudget(budget, nclus, cluscost = 0, indivcost = 1, 
	prtreat = NULL, tauy=NULL, sigma2y=NULL, totalvar=NULL, iccy=NULL, r2between = 0, 
	r2within = 0, numpredictor = 0, assurance=NULL, conflevel = 0.95)
ss.aipe.crd.both.fixedbudget(budget, cluscost=0, indivcost=1, prtreat, tauy=NULL, 
	sigma2y=NULL, totalvar=NULL, iccy=NULL, r2between = 0, r2within = 0, 
	numpredictor = 0, assurance=NULL, conflevel = 0.95)
ss.aipe.crd.both.fixedwidth(width, cluscost=0, indivcost=1, prtreat, tauy=NULL, 
	sigma2y=NULL, totalvar=NULL, iccy=NULL, r2between = 0, r2within = 0, 
	numpredictor = 0, assurance=NULL, conflevel = 0.95)

Arguments

width

The desired width of the confidence interval of the unstandardized means difference

budget

The desired amount of budget

nclus

The desired number of clusters

nindiv

The number of individuals in each cluster (cluster size)

prtreat

The proportion of treatment clusters

cluscost

The cost of collecting a new cluster regardless of the number of individuals collected in each cluster

indivcost

The cost of collecting a new individual

tauy

The residual variance in the between level before accounting for the covariates

sigma2y

The residual varaince in the within level before accounting for the covariate

totalvar

The total resiudal variance before accounting for the covariate

iccy

The intraclass correlation of the dependent variable

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)

numpredictor

The number of predictors used in the between level

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)

conflevel

The desired level of confidence for the confidence interval

Details

Here are the functions description:

Value

The ss.aipe.crd.nclus.fixedwidth and ss.aipe.crd.nclus.fixedbudget functions provide the number of clusters. The ss.aipe.crd.nindiv.fixedwidth and ss.aipe.crd.nindiv.fixedbudget functions provide the cluster size. The ss.aipe.crd.both.fixedbudget and ss.aipe.crd.both.fixedwidth provide the number of clusters and the cluster size, respectively.

Author(s)

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

Examples

## Not run: 
ss.aipe.crd.nclus.fixedwidth(0.3, 30, 0.5, 0.25, 0.75)
ss.aipe.crd.nindiv.fixedwidth(0.3, 250, 0.5, 0.25, 0.75)
ss.aipe.crd.nclus.fixedbudget(10000, 20, 20, 1)
ss.aipe.crd.nindiv.fixedbudget(10000, 30, 20, 1, prtreat=0.5, tauy=0.05, sigma2y=0.95, assurance=0.8)
ss.aipe.crd.both.fixedbudget(10000, 30, 1, 0.5, 0.25, 0.75)
ss.aipe.crd.both.fixedwidth(0.3, 0, 1, 0.5, 0.25, 0.75)

## End(Not run)

[Package MBESS version 3.3.3 Index]