CoxModel

CoxModel[...]
represents the symbolic proportional hazards model obtained from CoxModelFit.

Details and OptionsDetails and Options

  • Properties of a Cox model are obtained from CoxModel[...]["property"].
  • CoxModel[...][{prop1, prop2, ...}] gives several properties.
  • gives the value of the best-fit function at a particular point for covariate levels .
  • Normal gives the expression for the baseline survival function in a CoxModel.
  • 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 CoxModelFit that generate the model.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Create a CoxModel from some right-censored data:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Extract a property from the model:

In[3]:=
Click for copyable input
Out[3]=

Evaluate the baseline survival function at 3:

In[4]:=
Click for copyable input
Out[4]=

Use normal to obtain the baseline survival function:

In[5]:=
Click for copyable input
Out[5]=

Obtain a list of available properties:

In[6]:=
Click for copyable input
Out[6]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »