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.me...@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@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@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.