[R] How to extract the Deviance of a glm fit result

2007-11-21 Thread leffgh
dear List: glm(a~b+c,family=binomial,data=x)->fit deviance(fit) returns the same as the residual deviance. I don't not know much about logistic regression.Some book tells that: " Deviance (likelihood ratio statistic): Deviance = -2log( likelihoodof the currentmodel /likelihoodof thesaturated

Re: [R] Problems with NA's

2007-11-20 Thread leffgh
somewhere I read that " !is.na(your_vector)" is better than "your_vector!=NA" . Thomas L Jones, PhD wrote: > > Difficulty handling NA's: > Assume that I have a numeric vector y. For simplicity, assume that it has > 10 > elements. Assume that the third element has the value NA. I give it the >

[R] Is there any document explaining the pararell regression detailly ?

2007-11-13 Thread leffgh
I don't understand the output from a pararell regression , I don't know how to extract components of the result . can anyone send me files explaining the pararell regression detailly ? I will be very grateful to you -- View this message in context: http://www.nabble.com/Is-there-any-document-ex

[R] how to extract the original data of a glm object

2007-11-12 Thread leffgh
my function is glm(a~log(b)+c+d+e,family=binomial,data=f)->aa I want to extract the original data set of aa. How to do it ? You may suggest the model.frame() function. In fact ,i have tried it. model.frame returns a data frame of containing a,log(b) NOT b,c,d,e I want to extract a d

Re: [R] how to randomize a vector

2007-11-11 Thread leffgh
> > This email may contain information that is confidential. > Any use or publication of this email without written permission from > Faculty of Agricultural Sciences is not allowed. > If you are not the intended recipient, please notify Faculty of > Agricultural Science

[R] how to randomize a vector

2007-11-11 Thread leffgh
I have a vector whose length is nearly 70 thousand. I need randomize it for 1000 times . for randomizing , I mean ,the elements of the vector remain intact while their order in the vector get changed randomly. I have written a function which seems to be able to solve short vectors , but waste a l