Usage
RRlog(formula, data, model, p, group, LR.test = TRUE, fit.n = c(10, 100),
fit.bound = 10, maxit = 1000, start = NULL, ...)
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 vignette("RRreg") for details.
p
randomization probability/probabilities (depending on model)
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
Minimum and maximum number of fitting replications using random starting values to avoid local maxima (only if start=NULL)
fit.bound
The model is fitted repeatedly either until the absolute parameter estimates are below fit.bound or the maximum number of fitting replication is reached. Thereby, stability of the estimates is increased. fit.bound should be incre
maxit
Maximum number of iterations within each run of optim
start
starting values for optimization. Might be useful if model does not converge with default starting values.