coef.coxph_mpl: Extract coefficients of a coxph_mpl Object or of its...

coef.coxph_mplR Documentation

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 class 'coxph_mpl'
coef(object, parameters="Beta",...)

## S3 method for class 'summary.coxph_mpl'
coef(object, parameters="Beta",...)

Arguments

object

an object inheriting from class coxph_mpl or summary.coxph_mpl.

parameters

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.

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.

Value

a vector of coefficients or a matrix of coefficients with standard errors, z-statistics and corresponding p-values.

Author(s)

Dominique-Laurent Couturier, Maurizio Manuguerra

See Also

coxph_mpl and summary.coxph_mpl.

Examples

## 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))

## End(Not run)

survivalMPL documentation built on Nov. 21, 2022, 5:07 p.m.