Examples for 'survival::yates'


Population prediction

Aliases: yates

Keywords: models survival

### ** Examples

fit1 <- lm(skips ~ Solder*Opening + Mask, data = solder)
yates(fit1, ~Opening, population = "factorial")
 Opening     pmm     std        test chisq df    ss      Pr
       L  3.2638 0.33460      global 573.4  2 15980 < 1e-08
       M  3.5700 0.30480                                   
       S 12.3519 0.31251                                   
fit2 <- coxph(Surv(time, status) ~ factor(ph.ecog)*sex + age, lung)
yates(fit2, ~ ph.ecog, predict="risk")  # hazard ratio
 factor(ph.ecog)     pmm      std                 test chisq df Pr
               0 0.94238  0.43057      factor(ph.ecog)    NA NA NA
               1 1.42677  0.72571                                 
               2 1.74848  3.42828                                 
               3      NA 32.55425                                 

[Package survival version 3.5-3 Index]