Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. > m1 <- coxph(Surv(time, y) ~ x1+x2, data=a)
  2. > m2 <- coxph(Surv(time, y) ~ x1+x2+x3, data=a)
  3. > anova(m1, m2)
  4. Analysis of Deviance Table
  5. Cox model: response is Surv(time, y)
  6. Model 1: ~ x1 + x2
  7. Model 2: ~ x1 + x2 + x3
  8. loglik Chisq Df P(>|Chi|)
  9. 1 -319.85
  10. 2 -317.17 5.3526 1 0.02069 *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement