Generates correrlated binary cluster data given value of Intracluster Correlation, proportion of event and it's variation, number of clusters, cluster size and variation in cluster size
A numeric value between 0 and 1 denoting assumed proportion of event in interest, default value is 0.5. See Detail
prvar
A numeric value between 0 and 1 denoting percent of variation in assumed proportion of event (prvar), default value is 0. See Detail
noc
A numeric value telling the number of clusters to be generated
csize
A numeric value denoting desired cluster size. See Deatil
csvar
A numeric value between 0 and 1 denoting percent of variation in cluster sizes (csize), default value is 0. See Detail
rho
A numeric value between 0 and 1 denoting desired level of Intracluster Correlation
Value
A dataframe with two columns presenting cluster id (cid) and a binary response (y) variables
Details
The minimum and maximum values of event proportion (prop) will be taken as 0 and 1 respectively in cases where it exceeds the valid limits (0, 1) due to larger value of percent variation (prvar) supplied
The minimum value of cluster size (csize) will be taken as 2 in cases where it goes below 2 due to larger value of percent variation (csvar) supplied