modelExtract.flexsurvreg: A generic function for extracting model information

View source: R/modelExtract.flexsurvreg.R

modelExtract.flexsurvregR Documentation

A generic function for extracting model information

Description

This function extracts model information for use with the pscfit.R function.

Usage

## S3 method for class 'flexsurvreg'
modelExtract(CFM)

Arguments

CFM

a model of class 'flexsurvreg'

Details

A function for extracting the model information required for using pscfit

Value

a list of extracted model components. Included are

  • mod_class: The class of the model object

  • terms: The terms included in the model

  • cov_cls: The classes of the model covariates

  • cov_lev: The levels of categorical variables

  • cov_co: covariate coefficients

  • sig: variance-covariance matrix

  • haz_co: hazard parameter coefficients

  • k: number of knots

  • knots: knot position

  • lam: lambda parameter

  • form: model formula


psc documentation built on June 8, 2025, 10:16 a.m.