Advertisement
QwertyAvatar

Untitled

Jun 10th, 2024
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.57 KB | None | 0 0
  1. #3
  2. chickwts
  3. View(chickwts)
  4. str(chickwts)
  5. #badamy normalność
  6. CA=subset(chickwts, feed=="casein")
  7. head(CA)
  8. shapiro.test(CA$weight)
  9. #pvalue>>0.05, dane z rozkladu normalnego
  10. qqnorm(CA$weight)
  11. qqline(CA$weight)
  12. bartlett.test(weight~feed, data=chickwts)
  13. boxplot(weight~feed, data=chickwts,las=1, col=5)
  14. plot.design(chickwts)
  15. library(doBy)
  16. summaryBy(weight~feed,data=chickwts,FUN=c(mean,var,sum))
  17. #analiza wariancji
  18. H0: uc=uh=ul=um=us=usu
  19. H1~H0
  20. analiza=aov(weight~feed,data=chickwts)
  21. summary(analiza)
  22. pairwise.t.test(chickwts$weight,chickwts$feed)
  23. TukeyHSD(analiza)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement