coef.splineCox function

Extract Coefficients from Spline Base Cox Model

Extract Coefficients from Spline Base Cox Model

Extract coefficient values from splineCox fitting results, and summarize the point estimate and 95% confidence band into a data frame.

## S3 method for class 'splineCox' coef(object, ...)

Arguments

  • object: An object returned by function splineCox.
  • ...: Optional arguments. Currently, the only applicable arguemnt is level for the credible level. The default value is 0.95.

Returns

A data.frame with 6 columns ("Low", "Mid", "High", "Time", "Cov", "Model"), where "Mid" is the point estimates; "Low" and "High" are the point estimates plus and minus 1.96 times standard deviations (under default level); "Cov" and "Model" contain character values of the covariates and model type.

Note

It essentially expand the break points, and then call function coxph in package survival

Examples

## See the examples in splineCox.

See Also

splineCox, and plotCoef.

  • Maintainer: Wenjie Wang
  • License: GPL (>= 3)
  • Last published: 2024-07-08