Re: [R] extracting significance test for individual lm() parameters after using by

2015-01-25 Thread Michael Dewey
Dear Jerad I may have completely misunderstood your question but you do know that you can write your own function and use it in sapply where you have summary? You could incorporate calls to summary or to coef or somet other extractor or you could use the $ tool. On 25/01/2015 02:01, Moxley,

Re: [R] extracting significance test for individual lm() parameters after using by

2015-01-25 Thread David Winsemius
On Jan 24, 2015, at 11:02 PM, Moxley, Jerad wrote: Sorry I was not clearer, but I was asking an R programming question not a theory question. Copying back the original text which appears to have been omitted: On 25/01/2015 02:01, Moxley, Jerad wrote: I’m trying to test what growth

Re: [R] extracting significance test for individual lm() parameters after using by

2015-01-24 Thread Moxley, Jerad
Sorry I was not clearer, but I was asking an R programming question not a theory question. I will try to clarify. If I did this analysis with a dataset involving just one subject the summary command on the lm object would give me a significance test on each parameter fit. The question in this

Re: [R] extracting significance test for individual lm() parameters after using by

2015-01-24 Thread Jeff Newmiller
R-square is often a poor indicator of whether a model is appropriate or not. While it is possible that there exists a package that implements your algorithm (which you might find using the sos package), I would recommend that you get some advice from an expert on how to approach this subject,

[R] extracting significance test for individual lm() parameters after using by

2015-01-24 Thread Moxley, Jerad
I’m trying to test what growth functions best fit individual subjects. I’m wanting compare linear, quadratic, cubic etc. Here is the example from the cubic curve. b3a-by(c,id,function(x) lm(w~agec+ageq+agecub,data=x)) I can get quiet a bit of information out of sapply(b3a,summary) but it