"profile"(fitted, which, variable, steps = 100, pitch = 0.05, limits, alpha = 0.05, firth = TRUE, legends = TRUE, control, plcontrol, plot = FALSE, ...)logistf
which=~X).
which, a variable name can be given, e.g., variable="X"
steps, one may specify the step width in multiples of standard errors
firth=TRUE, default) or the
standard maximum likelihood method (firth=FALSE) for the logistic regression.
control= logistf.control(maxstep,
maxit, maxhs, lconv, gconv, xconv)
plcontrol= logistpl.control(maxstep,
maxit, maxhs, lconv, xconv, ortho, pr)
plot function is now provided.
logistf.profile with the following items:
plot.profile.logistf
data(sex2)
fit<-logistf(case ~ age+oc+vic+vicl+vis+dia, data=sex2)
plot(profile(fit,variable="dia"))
plot(profile(fit,variable="dia"), "cdf")
plot(profile(fit,variable="dia"), "density")
Run the code above in your browser using DataLab