Main Content
hazardratio
Syntax
Description
returns the estimated hazard relative to the baseline using the predictors
hazard
= hazardratio(coxMdl
,X
,Stratification
)X
and stratification levels Stratification
. The
number of rows in X
and Stratification
must be the
same.
Note
When you train coxMdl
using stratification variables and
pass predictor variables X
,
hazardratio
also requires you to pass
stratification variables.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021a