Evaluates the profile penalized likelihood of a variable based on a logistf model fit
# S3 method for logistf
profile(
fitted,
which,
variable,
steps = 100,
pitch = 0.05,
limits,
alpha = 0.05,
firth = TRUE,
legends = TRUE,
control,
plcontrol,
...
)
An object of class logistf.profile
with the following items:
Parameter values at which likelihood was evaluated
Parameter values divided by standard error
profile likelihood, standardized to 0 at maximum of likelihood. The values in profile are given as minus \(\chi^2\)
Unstandardized profile likelihood
signed root (z) of \(\chi^2\) values (negative for values below the maximum likelihood estimate, positive for values above the maximum likelihood estimate)
profile likelihood expressed as cumulative distribution function, obtained as \(\Phi(z)\), where \(\Phi\) denotes the standard normal distribution function.
An object fitted by logistf
A righthand formula to specify the variable for which the profile should be evaluated, e.g., which=~X).
Alternatively to which, a variable name can be given, e.g., variable="X"
Number of steps in evaluating the profile likelihood
Alternatively to steps, one may specify the step width in multiples of standard errors
Lower and upper limits of parameter values at which profile likelihood is to be evaluated
The significance level (1-\(\alpha\) the confidence level, 0.05 as default).
Use of Firth's penalized maximum likelihood (firth=TRUE
, default)
or the standard maximum likelihood method (firth=FALSE
) for the logistic regression.
legends to be included in the optional plot
Controls Newton-Raphson iteration. Default is control= logistf.control(maxstep,
maxit, maxhs, lconv, gconv, xconv)
Controls Newton-Raphson iteration for the estimation of the profile likelihood
confidence intervals. Default is plcontrol= logistpl.control(maxstep, maxit, maxhs, lconv, xconv, ortho, pr)
Further arguments to be passed.
Heinze G, Ploner M, Beyea J (2013). Confidence intervals after multiple imputation: combining profile likelihood information from logistic regressions. Statistics in Medicine, to appear.
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