Hello everybody, 

I used the function clogit() (package survival) to build a conditional logit
model. This is the R output of my model :
 coef exp(coef) se(coef) robust se z 
Pr(>|z|) 
anthro 2.14776 8.56565 0.09352 0.53989 3.978 6.94e-05 *** 
cor 0.92365 2.51846 0.07757 0.41944 2.202 0.027659 * 
for 1.55191 4.72047 0.07513 0.41488 3.741 0.000184
*** 
--- 
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

The covariates anthro, cor and for are dichotomic covariates (0/1). 
Then, I used the function predict() to calculate predicted values as follows
: 

modpred <- predict(ML,type="lp") 

and I obtained the following values for the first line of my original data : 

anthro cor for predited 
1 0 1 0 0.0839679 

With modpred <- predict(ML,type="expected"), I obtained : 
anthro cor for predited 
1 0 1 0 0.09618096 

My question is : from coefficients of clogit model, how can I find the
predicted values 0.0839679 and 0.09618096 ?
 In addition, how can I obtain predicted values ranged from 0 to 1 ? 

Thank you very much for your help. 

Marine


                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to