Re: [R] R2 always increases as variables are added?

2007-05-22 Thread Paul Lynch
On 5/21/07, Alberto Monteiro [EMAIL PROTECTED] wrote: Paul Lynch wrote: I don't think it makes sense to compare models with and without an intercept term. (Also, I don't know what the point of using a model without an intercept term would be, but that is probably just my ignorance

Re: [R] R2 always increases as variables are added?

2007-05-21 Thread Paul Lynch
=sum(( y.hat)^2)/sum((y)^2). Am I in the right way? Thanks Li Junjie 2007/5/19, Paul Lynch [EMAIL PROTECTED]: In case you weren't aware, the meaning of the -1 in y ~ x - 1 is to remove the intercept term that would otherwise be implied. --Paul On 5/17/07, 李俊杰 [EMAIL PROTECTED

[R] Plotting data with a fitted curve

2007-04-16 Thread Paul Lynch
.) Thanks, --Paul -- Paul Lynch Aquilent, Inc. National Library of Medicine (Contractor) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Vector indexing question

2007-03-29 Thread Paul Lynch
match the ID, and then go from there. Is there a better way? Perhaps using factors or levels or something? Thanks, --Paul -- Paul Lynch Aquilent, Inc. National Library of Medicine (Contractor) __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Vector indexing question

2007-03-29 Thread Paul Lynch
Paul Lynch wrote: Suppose you have 4 related vectors: a.id-c(1:25, 1:25, 1:25) a.vals - c(101:175)# same length as a.id (the values for those IDs) a.id.levels - c(1:25) a.id.ratings - rep(letters[1:5], times=5)# same length as a.id.levels What I would like to do is specify

[R] Fitting a line to a qqplot's points?

2007-03-22 Thread Paul Lynch
, --Paul -- Paul Lynch Aquilent, Inc. National Library of Medicine (Contractor) __ R-help@stat.math.ethz.ch 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

[R] Connecting R-help and Google Groups?

2007-03-14 Thread Paul Lynch
? It might require some action on the part of the r-help list administrator. Thanks, --Paul -- Paul Lynch Aquilent, Inc. National Library of Medicine (Contractor) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Connecting R-help and Google Groups?

2007-03-14 Thread Paul Lynch
] On Behalf Of Paul Lynch Sent: Wednesday, March 14, 2007 8:48 AM To: R-help@stat.math.ethz.ch Subject: [R] Connecting R-help and Google Groups? This morning I tried to see if I could find the r-help mailing list on Google Groups, which has an interface that I like. I found three Google Groups

Re: [R] Simplest question ever...

2007-03-01 Thread Paul Lynch
I'm not sure this is the most efficient, but how about: diag(m[a,b]) ? On 3/1/07, yoo [EMAIL PROTECTED] wrote: Let's say i have a = c(1, 4, 5) b = c(2, 6, 7) and i have matrix m, what's an efficient way of access m[1, 2], m[4, 6], m[5, 7] like of course m[a, b] = is not going to

Re: [R] integrate over polygon

2007-02-15 Thread Paul Lynch
I'm still pretty ignorant about R, but I think it might be possible to work out an algorithm using cross products. First you would want to subdivide the polygon into convex polygons. I haven't tried to do that before, but it looks like it might be possible by looking at the sign of cross

Re: [R] integrate over polygon

2007-02-15 Thread Paul Lynch
Oops. I just re-read your message and saw you were trying to integrate a function over a polygon, not calculate its area. I'm sorry I didn't read more carefully. --Paul On 2/15/07, Paul Lynch [EMAIL PROTECTED] wrote: I'm still pretty ignorant about R, but I think it might be possible

[R] R book advice

2007-02-15 Thread Paul Lynch
I'm looking for a book for someone completely ignorant of statistics who wishes to learn both statistics and R. I've found three possibilities, one by Verzani (Using R for Introductory Statistics), one by Crawley (Statistics: An Introduction using R), and one by Dalgaard (Introductory Statistics

Re: [R] make check failure, internet.Rout.fail, Error in strsplit

2007-02-13 Thread Paul Lynch
On 2/12/07, Charilaos Skiadas [EMAIL PROTECTED] wrote: On Feb 12, 2007, at 6:28 PM, Paul Lynch wrote: I'm trying to build R on RedHat EL4. The compile went fine, but a make check ran into a problem and produced a file internet.Rout.fail. Judging by the last part of that file, it was trying

Re: [R] make check failure, internet.Rout.fail, Error in strsplit

2007-02-13 Thread Paul Lynch
in a case-insensitive way, or at the very least to support Content-length. I guess the next thing to do would be to submit a bug report. Thanks a lot for helping me look into this problem, --Paul On 2/13/07, Charilaos Skiadas [EMAIL PROTECTED] wrote: On Feb 13, 2007, at 11:16 AM, Paul Lynch

[R] make check failure, internet.Rout.fail, Error in strsplit

2007-02-12 Thread Paul Lynch
I'm trying to build R on RedHat EL4. The compile went fine, but a make check ran into a problem and produced a file internet.Rout.fail. Judging by the last part of that file, it was trying to run an R routine called httpget to retrieve the URL