({{, (RefLink[CoxModel, paclet:ref/CoxModel])[…] 
represents the symbolic proportional hazards model obtained from (RefLink[CoxModelFit, paclet:ref/CoxModelFit]).}})

OpenersNotesSection(Spacer1)Details and Options

Properties of a Cox model are obtained from (RefLink[CoxModel, paclet:ref/CoxModel])[…]["property"].

(RefLink[CoxModel, paclet:ref/CoxModel])[…][{(Subscript[prop, 1]),(Subscript[prop, 2]),…}] gives several properties.

CoxModel[…][(Subscript[x, 0])][t] gives the value of the best-fit function at a particular point t for covariate levels (Subscript[x, 0]).

(RefLink[Normal, paclet:ref/Normal]) gives the expression for the baseline survival function in a (RefLink[CoxModel, paclet:ref/CoxModel]).

(RefLink[CoxModel, paclet:ref/CoxModel])[…][prop,ann] gives the annotation ann associated with the property prop.

Possible properties available for a given type of fitted model are listed on the pages for functions such as (RefLink[CoxModelFit, paclet:ref/CoxModelFit]) that generate the model.

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a (RefLink[CoxModel, paclet:ref/CoxModel]) from some right-censored data:

data=EventData[{1,2,3,4},{0,0,1,0}];

mod=CoxModelFit[data]

Extract a property from the model:

mod["EventTimes"]

Evaluate the baseline survival function at 3:

mod[3]

Use normal to obtain the baseline survival function:

Normal[mod]

Obtain a list of available properties:

mod["Properties"]

OpenersExampleSection1(Spacer1)Scope  (5)

Extract a property from a (RefLink[CoxModel, paclet:ref/CoxModel]) object:

mod=CoxModelFit[{1,2,3,4}]

The standard errors for the baseline survival function:

mod["StandardErrors"][]

Obtain a list of properties:

mod=CoxModelFit[{1,2,3,4}]

mod[{"MartingaleResiduals","CoxSnellResiduals"}]

Evaluate the baseline survival function at a point:

mod=CoxModelFit[{1,2,3,4}];

mod[2]

Map over several points:

mod/@{1,2,3,4}

Obtain an expression for the baseline survival function:

mod=CoxModelFit[{1,2,3,4}];

Normal[mod]

Annotate a property:

mod=CoxModelFit[{1,2,3,4}];

Table[Row[{i,":\n\t",mod["BaselineList",i]}],{i,{"Description","LongDescription"}}]//TableForm

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CoxModelFit, paclet:ref/CoxModelFit])  ▪  (RefLink[SurvivalModelFit, paclet:ref/SurvivalModelFit])  ▪  (RefLink[SurvivalDistribution, paclet:ref/SurvivalDistribution])  ▪  (RefLink[EmpiricalDistribution, paclet:ref/EmpiricalDistribution])  ▪  (RefLink[EventData, paclet:ref/EventData])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Survival Analysis, paclet:guide/SurvivalAnalysis])}})}})