Re: [R] predict with logistic regression

2006-09-19 Thread Anupam Tyagi
Jan Sabee jan.sabee at gmail.com writes: I know that is probability of predict for new dataset. My question is how can I know each probability according to class (sore). I mean that I need the result of predit something like (M=1, F=0): 1 2 3 4 5 6 7 8 9 10 1 0 0 0 1 0 1 1

[R] predict with logistic regression

2006-09-15 Thread Jan Sabee
I am learning about using logistic regression with glm. Suppose I have dataset: duration - c(45,15,40,83,90,25,35,65,95,35,75,45,50,75,30,25,20,60,70,30,60,61,65,15,20,45,15,25,15,30,40,15,135,20,40) type - c(0,0,0,1,1,1,rep(0,5),1,1,1,0,0,1,1,1,rep(0,4),1,1,0,1,0,1,0,0,rep(1,4)) sore -