ShixiangWang / regport

Regression Model Processing Port
https://shixiangwang.github.io/regport/
Other
6 stars 2 forks source link

交互项处理 #5

Open ShixiangWang opened 2 years ago

ShixiangWang commented 2 years ago
library(survival)

lung
str(lung)

summary(coxph(Surv(time, status) ~ factor(ph.ecog) * factor(sex), data = lung))
ShixiangWang commented 2 years ago

factor(ph.ecog)3:factor(sex)2 NA NA NA NA

会有NA值