logistftest(formula = attr(data, "formula"), data = sys.parent(), test, values, firth = TRUE, beta0, weights, control)
~ B +
D - 1
). As default all parameter apart from the intercept are tested.
If the formula includes -1, the intercept is omitted from testing.
As alternative to the formula one can test= ~
B1 + B4 + B5 - 1
and values=c(1, 2, 0)
.firth=TRUE
, default) or the
standard maximum likelihood method (firth=FALSE
) for the logistic regression. Note
that by specifying pl=TRUE
and firth=
data(sex2)
logistftest(case ~ age+oc+vic+vicl+vis+dia, sex2,
test = ~ vic + vicl - 1, values = c(2, 0))
Run the code above in your browser using DataLab