a dataset with variables Trt,
ClusterSize and Freq giving the number of clusters to be
generated for each Trt/ClusterSize combination.
p.gen.fun
a function of one parameter that
generates the value of the first parameter of
pdf.fun (p) given the group number.
rho.gen.fun
a function of one parameter that
generates the value of the second parameter of
pdf.fun (rho) given the group number.
pdf.fun
a function of three parameters (p,
rho, n) giving the PDF of the number of responses in a
cluster given the two parameters (p, rho), and the
cluster size (n). Functions implementing two
common distributions: the beta
Value
a CBData object with randomly generated number of responses
with sample sizes specified in the call.
Details
p.gen.fun and rho.gen.fun are functions that
generate the parameter values for each treatment group;
pdf.fun is a function generating the pdf of the
number of responses given the two parameters p and
rho, and the cluster size n.
p.gen.fun and rho.gen.fun expect the
parameter value of 1 to represent the first group, 2 - the
second group, etc.