logistftest(object, 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=anova.logistf, which is a more
standard way to perform likelihood ratio tests. However, as shown in the example below, logistftest provides
some specials such as testing agains non-zero values. (By the way, anova.logistf calls logistftest.)
A print method is available.anova.logistfdata(sex2)
fit<-logistf(case ~ age+oc+vic+vicl+vis+dia, data=sex2)
logistftest(fit, test = ~ vic + vicl - 1, values = c(2, 0))Run the code above in your browser using DataLab