## S3 method for class 'logistf':
profile(fitted, which, variable, steps = 100, pitch = 0.05, limits,
alpha = 0.05, firth = TRUE, legends = TRUE, control, plcontrol, plot = FALSE,
...)logistfwhich=~X).which, a variable name can be given, e.g., variable="X"steps, one may specify the step width in multiples of standard errorsfirth=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, prplot function is now provided.logistf.profile with the following items:plot.profile.logistfdata(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