search for: mydcmdata2

Displaying 1 result from an estimated 1 matches for "mydcmdata2".

2009 Aug 19
2
Problem with predict.coxph
...val library to fit multinomial logit models. (The breslow method produces the same likelihood function as the multinomial logit). We then utilize the predict function to create summary results for various combinations of covariates. For example: mod1<-coxph(Depvar~Price:Product+strata(ID),data=MyDCMData2,na.action=na.omit,method="breslow") The model runs fine. Then we create some new data that is all combinations of Price and Product and retrieve the summary linear predictors. newdata=expand.grid(Price=factor(as.character(1:5)),Product=factor(as.character(1:5))) ## create a utility mat...