How to stratify covariates in coxphfit function?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Juuso Korhonen
el 24 de Jul. de 2020
Respondida: Aditya Patil
el 18 de Ag. de 2020
Hi,
First I want to know how should I find out which covariates to stratify. I've been told to check the p-values in the stats after running coxphfit with no stratification. Those covariates which have p-value lower than 0.05 should be stratified. Is this correct?
Second, how do I actually stratify the covariates? The documentation says to offer name-value pair ('Strata', Gender) as input for the coxphfit, but what if my data is a matrix? Should I put 'Strata', X(:, 2) for example if I want to stratify the second covariate?
0 comentarios
Respuesta aceptada
Aditya Patil
el 18 de Ag. de 2020
It is possible to specify a column for stratification, as in following example,
load('lightbulb.mat');
b = coxphfit(lightbulb(:,2),lightbulb(:,1), ...
'Strata',lightbulb(:,3))
Find more details about when stratify should be used in the documentation here. The model is based on the assumption that the baseline hazard function depends on time, t, but the predictor variables do not. This assumption is also called the proportional hazards assumption. When you have variables that do not satisfy this assumption, you can consider using two extensions of Cox proportional hazards model: the stratified Cox model and the Cox model with time-dependent variables.
If the variables that do not satisfy the PH assumption are categorizable, use the stratified Cox model. If the variables that do not satisfy the PH assumption are time-dependent variables, use the Cox model with time-dependent variables.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Industrial Statistics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!