Usage
RRlog(formula, data, model, p, group, LR.test = TRUE, fit.n = 3,
EM.max = 1000, optim.max = 500, ...)
Arguments
formula
specifying the regression model, see formula
data
data.frame
, in which variables can be found (optional)
model
Available RR models: "Warner"
, "UQTknown"
, "UQTunknown"
, "Mangat"
, "Kuk"
, "FR"
, "Crosswise"
, "CDM"
, "CDMsym"
, "SLD"
. See
p
randomization probability/probabilities (depending on model, see RRuni
for details) group
vector specifying group membership. Can be omitted for single-group RR designs (e.g., Warner). For two-group RR designs (e.g., CDM
or SLD
), use 1 and 2 to indicate the group membership, matching the respective randomization proba
LR.test
test regression coefficients by a likelihood ratio test, i.e., fitting the model repeatedly while excluding one parameter at a time
fit.n
Number of fitting replications using random starting values to avoid local maxima
param fit.bound The model is fitted repeatedly either until the absolute parameter estimates are below fit.bound
or the maximum number of fitting replication i
EM.max
maximum number of iterations of the EM algorithm. If EM.max=0
, the EM algorithm is skipped.
optim.max
Maximum number of iterations within each run of optim