coef.coxph_mpl: Extract coefficients of a coxph_mpl Object or of its summary
Description
Extract the coefficients of the model part of interest of a coxph_mpl
object, and the matrix of coefficients of the model part of interest and
corresponding standard errors, \(z\)-statistics and \(p\)-values of a
summary.coxph_mpl object.
Usage
# S3 method for coxph_mpl
coef(object, parameters="Beta",…)
# S3 method for summary.coxph_mpl
coef(object, parameters="Beta",…)
the set of parameters of interest. Indicate parameters="Beta" for the
regression parameters and parameters="Theta" for the baseline hazard
parameters. Default is parameters="Beta".
…
other arguments.
Value
a vector of coefficients or a matrix of coefficients with standard errors,
z-statistics and corresponding p-values.
Details
When the input is of class summary.coxph_mpl and parameters=="Theta",
only the parameter estimates larger than min.Theta (see
coxph_mpl.control) are reported.
# NOT RUN {data(lung)
fit_mpl <- coxph_mpl(Surv(time, status == 2) ~ age + sex + ph.karno + wt.loss, data = lung)
coef(fit_mpl)
coef(summary(fit_mpl))
# }