Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. > library(survival)
  2.  
  3. > coxph.fit<-coxph( Surv(LT50duration, eventLT50, type=c('right')) ~ meanTDG + maxdepth + meantempC + gas.ratio + maxdepth*meanTDG , na.action = na.omit, data=LT50data, weights=LT50replicates)
  4. > coxph.spline<-coxph( Surv(LT50duration, eventLT50, type=c('right')) ~ pspline(meanTDG) + maxdepth + meantempC + gas.ratio + maxdepth*meanTDG , na.action = na.omit, data=LT50data, weights=LT50replicates)
  5.  
  6. > anova(coxph.fit,coxph.spline)
  7.  
  8. Analysis of Deviance Table
  9. Cox model: response is Surv(LT50duration, eventLT50, type = c("right"))
  10.  
  11. Model 1: ~ meanTDG + maxdepth + meantempC + gas.ratio + maxdepth * meanTDG
  12. Model 2: ~ pspline(meanTDG) + maxdepth + meantempC + gas.ratio + maxdepth * meanTDG
  13.  
  14. loglik Chisq Df P(>|Chi|)
  15. 1 -632.83
  16. 2 -619.24 27.174
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement