[R] how to find the minimum

2008-04-28 Thread Bin Yue
re to find b or p" Would you please give some suggestions? Thanks in advance. Best wishes, Bin Yue - Best regards, Bin Yue * student for a Master program in South Botanical Garden , CAS -- View this message in context: http://www.nabble.com/how-to-find-t

Re: [R] re store pictures in an automatically named files using loops

2007-12-17 Thread Bin Yue
I put bmp() before the plot() syntax , then the code worked. Bin Yue wrote: > > Dear all: > I hope that the file in which the picture is stored has the same name > as the " main" title of the picture . But it turns out that , the name of > the file is :names

[R] re store pictures in an automatically named files using loops

2007-12-17 Thread Bin Yue
env[[i]],main=names(spl.sp)[i]) legend("topleft",lty=1:4,col=1:4,legend=c("obs","theo","hi","lo")) text(2,500,cex=0.8, paste("n=",spl.sp[[i]]$n,sep="")) bmp(paste(names(spl.sp)[i],".bmp",sep="")) } } }

Re: [R] the observed "log odds" in logistic regression

2007-12-11 Thread Bin Yue
Dieter Menne: Thank you for your reply! I know that I don't have to do any logit , but I want to understand how R fit the glm models. I will read the examples your suggested . Best regards, Bin Yue Dieter Menne wrote: > > Bin Yue 163.com> writes: > >> After re

[R] the observed "log odds" in logistic regression

2007-12-10 Thread Bin Yue
nder how the residual is computed. Would you please help me ? Thank all very much again. Regards, Bin Yue - Best regards, Bin Yue * student for a Master program in South Botanical Garden , CAS -- View this message in context: http://www.nabble.com/the-observed-%2

[R] paradox about the degree of freedom in a logistic regression model

2007-12-06 Thread Bin Yue
set affects the result of regression ,such as the degree of freedom. Dose anybody have any idea about this? Thank all who read this message. Regards, Bin Yue - Best regards, Bin Yue * student for a Master program in South Botanical Garden , CAS -- View this message in conte

[R] what actually a logistic regression fits

2007-12-06 Thread Bin Yue
ix(small.glm)[,i]->res[,i] + } > apply(res,1,sum)->right > plot(left,right) #I got a straight line whose slope was about 1 Therefore ,I am almost sure that what a logistic regression fits is log(p/(1-p))~b0+b1*x. Is that right? Regards, - Best regards, Bin Yue *

Re: [R] logistic regression using "glm",which "y" is set to be "1"

2007-12-05 Thread Bin Yue
oes anybody know how to obtain the transformation result ? It is hard to settle down before knowing the actual process R works . I have read some books and the "?glm" help file , but what they told me was not sufficient. Best wishes , Bin Yue Weiwei Shi wrote: > > Dear Bin:

Re: [R] logistic regression using "glm",which "y" is set to be "1"

2007-12-05 Thread Bin Yue
;. Thank you very much . Best regards, Bin Yue Marc Schwartz wrote: > > > On Wed, 2007-12-05 at 18:06 -0800, Bin Yue wrote: >> Dear friends : >> using the "glm" function and setting family=binomial, I got a list of >> coefficients. >>

[R] logistic regression using "glm",which "y" is set to be "1"

2007-12-05 Thread Bin Yue
" . I don't know which level of the response was set to be 1. is the first element of the response set to be 1? Thank all in advance. Regards, - Best regards, Bin Yue * student for a Master program in South Botanical Garden , CAS -- View this message in context: ht

[R] What is the "deviance " and the "ch ange in deviance" of a logistic regression?

2007-11-25 Thread Bin Yue
ed due to missingness) AIC: 3618.5 Number of Fisher Scoring iterations: 5 > deviance(glm1) [1] 3612.516 is the "deviance(glm1)" the "deviance" ? If yes, what is the "change in deviance"? Is it "residual deviance-null.deviance"? Thanks all . Best wishes, Bin