Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created September 30, 2021 18:26
Show Gist options
  • Save MJacobs1985/342b5b234485c79417e49381e09f95fa to your computer and use it in GitHub Desktop.
Save MJacobs1985/342b5b234485c79417e49381e09f95fa to your computer and use it in GitHub Desktop.
How many samples do you need?
#### MODEL BUILDING ####
fit<-lm(gain~Diet,data=ARCdata)
summary(fit)
unlist(summary(aov(fit)))[[9]] # significance of F value from ANOVA -->0.2288
unlist(summary(aov(fit)))[[7]] # F value from ANOVA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment