Re: [R] ANOVA test to decide whether to use multiple linear regression or linear mixed effects model

2017-08-15 Thread S Ellison
> I am trying to decide between using a multiple linear regression or a linear > mixed effects model for my data: > ... > but I keep getting the following error code: > > Error in anova.lmlist (object, ...): > > models were not all fitted to the same size of dataset anova is defaulting to a

[R] ANOVA test to decide whether to use multiple linear regression or linear mixed effects model

2017-08-15 Thread Lucy McMahon
R-help: I am trying to decide between using a multiple linear regression or a linear mixed effects model for my data: model1 <- lm (responsevariable ~ predictor1 + predictor2 + predictor3 + predictor4, data= data) model2 <- lme (responsevariable ~ predictor1 + predictor2 + predictor3 + pred

Re: [R] ANOVA test

2014-12-27 Thread peter dalgaard
> On 27 Dec 2014, at 02:50 , Richard M. Heiberger wrote: > > Kristi, > > The easiest way to do what you are looking for is the aovSufficient function > in the HH package. > > ## install.packages("HH") ## if you don't have it yet > library(HH) > B.aov <- aovSufficient(mean ~ site, data=B, sd=B$

Re: [R] ANOVA test

2014-12-26 Thread Richard M. Heiberger
Kristi, The easiest way to do what you are looking for is the aovSufficient function in the HH package. ## install.packages("HH") ## if you don't have it yet library(HH) B.aov <- aovSufficient(mean ~ site, data=B, sd=B$SE, weights=c(3,3,3,3)) summary(B.aov) You must have the sample size for each

Re: [R] ANOVA test

2014-12-26 Thread peter dalgaard
You could at least say that no, that is patently wrong! There are ways to reconstruct an ANOVA from means, sd, and group sizes, but this isn't it. In fact, the group sizes are not even used in the code. I agree about the need for a statistical expert. Fundamental misunderstandings seem to be pr

Re: [R] ANOVA test

2014-12-26 Thread Bert Gunter
This is a statistical question primarily and, as such, is off topic here. Either consult a local statistical expert or post to a statistical site like stats.stackexchange.com . Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is n

[R] ANOVA test

2014-12-26 Thread Kristi Glover
Hi R user, I am wondering whether I can perform a simple ANOVA analysis in the data in which I  have mean + SE (+- Standard Error) for several groups.  For this one,  I calculated upper and lower confidence interval and made three classes for each group (mean, upper and lower values). After that,

Re: [R] anova test for variables with different lengths

2012-10-16 Thread S Ellison
>> I want to test whether the MEAN of two different variables, >> (and different number of observations) are the same. I am >> trying to use the anova test but it doesn't seem to like that >> the number of observations are different: >> >> a=c(1:5) >> b=c(1:3) >> aov_test=aov(a~b) >> Err

Re: [R] anova test for variables with different lengths

2012-10-16 Thread Jose Iparraguirre
b-evidence-statistics/ -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sachinthaka Abeywardana Sent: 16 October 2012 04:18 To: r-help@r-project.org Subject: [R] anova test for variables with different lengths Hi all, I want to test w