nested ANOVA for grouping factors

52 views
Skip to first unread message

anvar sour

unread,
Feb 2, 2018, 6:12:47 PM2/2/18
to ez4r

Hi there,


I do appreciate if someone kindly help me that enables me to perform nested design ANOVA on my data.

I did linear regression (six models) between two variables (LnB and LnC) and also I added catgorial variables as a grouping factor (six group factors, site, vegetation type, Topography, soil texture, direction, disturbance) in each model, as following:


data <- read_excel("C:/Users/Anvar/Documents/multispecies.xlsx",sheet=1)



data$disturbance <- factor(data$disturbance)

data$site <- factor(data$site)

data$vegtype <- factor(data$vegtype)

data$Direction <- factor(data$Direction)

data$Texture <- factor(data$Texture)

data$Topo <- factor(data$Topo)


#####################  multispecies analysis, Models using only C

lm1 <- lm(LnB ~ LnC+ disturbance, data=data)
summary(lm1)

lm2 <- lm(LnB ~ LnC+ Direction, data=data)
summary(lm2)


lm3 <- lm(LnB ~ LnC+vegtype, data=data)
summary(lm3)


lm4 <- lm(LnB ~ LnC+ Topo, data=data)
summary(lm4)


lm5 <- lm(LnB ~ LnC+Texture, data=data)
summary(lm5)

lm6 <- lm(LnB ~ LnC+ site, data=data)
summary(lm6)

now I want to do nested analysis variance (ANOVA) for finding that how much of the relative residual variance (%) is explained by each group factor.


Thanks for the help in advance.
Best Regards,
Anvar,

Mike Lawrence

unread,
Feb 3, 2018, 9:43:02 PM2/3/18
to ez...@googlegroups.com
Sorry, ez was only designed to address factorial ANOVAs, and the heirarchical/nested scenario you have is outside this scope. Maybe look at the lme4 package?


--
Mike Lawrence
Graduate Student
Department of Psychology & Neuroscience
Dalhousie University

~ Certainty is (possibly) folly ~

--
You received this message because you are subscribed to the Google Groups "ez4r" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ez4r+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages