Re: [R] Rsquared for anova

From: Peter Ehlers <ehlers_at_ucalgary.ca>
Date: Sun, 17 Apr 2011 10:43:34 -0700

On 2011-04-17 02:34, Dorien Herremans wrote:
> Thanks for your remarks. I've been reading about R for the last two days,
> but I don't really get when I should use lm or aov.

I don't think that reading about R is the answer at this stage. It appears to me that you need to learn more about regression. There are many good introductory books. If you want to learn the R way at the same time, you could look at the books section on CRAN. Perhaps Peter Dalgaard's Intro to Stats with R or An R Companion to Applied Regression by J. Fox and S. Weisberg, or the books by Verzani or Heiberger/Holland.

After that, you'll find that the R documentation is actually quite good. Most complaints about R's documentation seem to amount to complaints that it doesn't teach statistics. That's a good thing.

About your data: I'm fairly sure that several, if not most, of your predictors should be factors.

Peter Ehlers

>
> I have attached the dataset, feel free to take a look at it.
>
> So far, running it with alle the combinations did not take too long and
> there seem to be some effects between the parameters. However, 2x2
> combinations might suffice.
>
> Thanks for any help, or a pointer to some good documentation,
>
> Dorien
>
>
> On 16 April 2011 10:13, Dieter Menne<dieter.menne_at_menne-biomed.de> wrote:
>
>>
>> dorien wrote:
>>>
>>>> fit<- lm((tos~nh1*nh2*nh3*randsize*aweights*tt1*tt2*tt3*iters*length,
>>> data=expdata))
>>> Error: unexpected ',' in "fit<-
>>> lm((tos~nh1*nh2*nh3*randsize*aweights*tt1*tt2*tt3*iters*length,"
>>>
>>>
>>
>> Peter's point is the important one: too many interactions, and even with +
>> instead of * you might be running into problems.
>>
>> But anyway: if you don't let us access
>>
>>
>> /home/dorien/UA/meta-music/optimuse/optimuse1-build-desktop/results/results_processedCP
>>
>> you cannot expect a better answer which will depend on the structure of the
>> data set.
>>
>> Dieter
>>
>>
>>
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/Rsquared-for-anova-tp3452399p3453719.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help_at_r-project.org 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 commented, minimal, self-contained, reproducible code.
>>
>
>
>



R-help_at_r-project.org 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 commented, minimal, self-contained, reproducible code. Received on Sun 17 Apr 2011 - 17:48:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 17 Apr 2011 - 21:10:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive