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, conf.level = 0.95, cluscost=NULL, indivcost=NULL, diffsize=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, conf.level = 0.95, cluscost=NULL, indivcost=NULL, diffsize=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, conf.level = 0.95, diffsize=NULL)
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, conf.level = 0.95, diffsize=NULL)
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, conf.level = 0.95, diffsize=NULL)
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, conf.level = 0.95, diffsize=NULL)
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 covariate
sigma2y
The residual variance 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)
conf.level
The desired level of confidence for the confidence interval
diffsize
Difference cluster size specification. The difference in cluster sizes can be specified in two ways. First, users may specify cluster size as integers, which can be negative or positive. The resulting cluster sizes will be based on the estimated cluster size adding by the specified vectors. For example, if the cluster size is 25, the number of clusters is 10, and the specified different cluster size is c(-1, 0, 1)
, the cluster sizes will be 24, 25, 26, 24, 25, 26, 24, 25, 26, and 24. Second, users may specify cluster size as positive decimals. The resulting cluster size will be based on the estimated cluster size multiplied by the specified vectors. For example, if the cluster size is 25, the number of clusters is 10, and the specified different cluster size is c(-1, 0, 1)
, the cluster sizes will be 24, 25, 26, 24, 25, 26, 24, 25, 26, and 24. If NULL
, the cluster size is equal across clusters.