Displaying 2 results from an estimated 2 matches for "chapsurv_v".
2009 Mar 14
1
obtaining the values for the hazard function in a cox regression
...values. I am wanting to confirm
whether basehaz is the correct command to obtain such values, to
better understand what is occurring in the log plots.
Below is the code that I have been using. Any assistance is appreciated,
regards
Bob
library(survival)
recidivismv <- read.csv("g://Chapsurv_v.csv",header=T)
cox.V <- coxph(Surv(intDaysUntilFVPO, Event_v) ~ intAgeAtMHCIndex +
PRE + group + MHC + strGender, data = recidivismv)
summary (cox.V)
# produces a log-log plot
mvfit <- survfit (Surv(recidivismv$intDaysUntilFVPO,
recidivismv$Event_v) ~ MHC, data = recidivismv)
neg.ll...
2009 Mar 28
1
stratified variables in a cox regression
...female if a gender variable were stratified). I
have not seen this approach used in R examples I have seen.
Below is my current code - is there a method to test whether the
stratified variables should be included in the final model at all?
library(survival)
recidivismv <- read.csv("g://Chapsurv_v.csv",header=T)
cox.V2 <- coxph(Surv(intDaysUntilFVPO, Event_v) ~ intAgeAtMHCIndex +
PRE + group + strata (MHC, strGender), data = recidivismv)
regards
Bob