StrataVariables

StrataVariables
is an option for fitting functions such as CoxModelFit that specify the variables on which the model should be stratified.

DetailsDetails

  • Strata variables are used to divide a non-homogeneous population into homogeneous subgroups. Stratification is often useful in proportional hazards modeling where the assumption of proportional hazards between subgroups may be suspect.
  • Possible settings for StrataVariables include:
  • Nonetreat no variables as strata
    {v1,v2,}treat the variables as strata
  • Models with a strata variable v with p levels effectively group the input data into p groups corresponding to the .
  • With multiple strata variables , , with levels, the input data is grouped into at most groups, dropping empty subgroups.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Define some data:

In[1]:=
Click for copyable input

Fit the data, treating the second variable as a strata variable:

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

One stratum is created for each level in the data:

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

A parameter summary table:

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

Fit a model with more than one strata variable:

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

All non-empty combinations of the strata variables are used:

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

Baseline survival rates for the strata:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2012
(9.0)