Re: [R] how to calculate Rsquare

2003-08-27 Thread Ronaldo Reis Jr.
Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient of determination, Biometrika 78: 691-2. Cox, D. R. and Wermuth, N. (1992) A comment on the coefficient of determination for binary responses, The American

RE: [R] how to calculate Rsquare

2003-08-27 Thread Paul, David A
, 2003 10:04 AM To: R-Help Subject: Re: [R] how to calculate Rsquare Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient of determination, Biometrika 78: 691-2. Cox, D. R. and Wermuth, N. (1992) A comment

Re: [R] how to calculate Rsquare

2003-08-27 Thread Spencer Graves
] Sent: Wednesday, August 27, 2003 10:04 AM To: R-Help Subject: Re: [R] how to calculate Rsquare Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient of determination, Biometrika 78: 691-2. Cox, D. R. and Wermuth, N. (1992

Re: [R] how to calculate Rsquare

2003-08-27 Thread Frank E Harrell Jr
On Wed, 27 Aug 2003 11:04:21 -0300 Ronaldo Reis Jr. [EMAIL PROTECTED] wrote: Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient of determination, Biometrika 78: 691-2. The fitting functions lrm, psm, cph in the

Re: [R] how to calculate Rsquare

2003-08-27 Thread Peter Dalgaard BSA
licences they might break by sending you free copies. And David's right: This is outside the scope of r-help. From: Ronaldo Reis Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 10:04 AM To: R-Help Subject: Re: [R] how to calculate Rsquare Can anybody send these articles

Re: [R] how to calculate Rsquare

2003-08-27 Thread Spencer Graves
: This is outside the scope of r-help. From: Ronaldo Reis Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 10:04 AM To: R-Help Subject: Re: [R] how to calculate Rsquare Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient

Re: [R] how to calculate Rsquare

2003-08-27 Thread Spencer Graves
: [R] how to calculate Rsquare Can anybody send these articles for me? NagelKerke, N. J. D. (1991) A note on a general definition of the coefficient of determination, Biometrika 78: 691-2. Cox, D. R. and Wermuth, N. (1992) A comment on the coefficient of determination for binary responses

[R] how to calculate Rsquare

2003-07-21 Thread Ronaldo Reis Jr.
Hi, I have something like this: x - 1:10 y2 - 30+5*x+rnorm(x,sd=3) y - c(y1,y2) x - c(x,x) plot(x,y) x - 1:10 y1 - 1+5*x+rnorm(x,sd=2) y2 - 30+5*x+rnorm(x,sd=5) y - c(y1,y2) x - c(x,x) f - factor(rep(c(a,b),c(10,10))) m - lm(y~x+f) anova(m) Analysis of Variance Table Response: y

Re: [R] how to calculate Rsquare

2003-07-21 Thread Spencer Graves
It should be easy to get a separate R^2 from lm for each level of a factor: Just split the data and run lm once for each level of f. I've done this with a for loop something like the following: dat - data.frame(x=x, y=y, f=f) for(i.f in 1:2){ sel - (f == c(a,