Re: [R] Rsquared for anova

From: Dorien Herremans <dorien.herremans_at_gmail.com>
Date: Fri, 15 Apr 2011 23:36:48 +0200

Hi,

Thank you for your suggestion.

I am stil quite new to the syntax of R. I tried in a few ways but all produced errors:

> 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,"

> fit <- lm(tos~nh1*nh2*nh3*randsize*aweights*tt1*tt2*tt3*iters*length)
Error in eval(expr, envir, enclos) : object 'tos' not found
> summary.lm(tos~nh1*nh2*nh3*randsize*aweights*tt1*tt2*tt3*iters*length)
Error in if (p == 0) { : argument is of length zero

Thanks for any additional insight...

Dorien

On 15 April 2011 18:07, Dieter Menne <dieter.menne_at_menne-biomed.de> wrote:

>
> dorien wrote:
> >
> > I calculate an anova test in the following way:
> >
> > ... aov example
> >
> > I want to check the fit of the model with Rsquared
> >
>
> Try summary(lm(...)) instead.
>
> Dieter
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Rsquared-for-anova-tp3452399p3452434.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.
>

-- 
Dorien Herremans

	[[alternative HTML version deleted]]

______________________________________________
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 Sat 16 Apr 2011 - 05:43:07 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 Sat 16 Apr 2011 - 08:40:31 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