biometryhub / biometryassist

A package to aid in teaching experimental design and analysis through easy access and documentation of helper functions. Renaming of previous BiometryTraining package.
https://biometryhub.github.io/biometryassist
Other
8 stars 1 forks source link

Kruskal wallis multiple comparison test? #40

Closed lsaverbio closed 2 years ago

lsaverbio commented 2 years ago

Hi! This is not so much a bug but a question. Can anyone recommend a r package that can take an asreml model and do a kruskal wallis with a multiple comparison output? My data is far from normal... Thank you for your time, Sarah

rogerssam commented 2 years ago

Hi Sarah,

My first approach is typically to try a transformation (log, sqrt, logit, etc) on the response variable, and see if that helps. If not, you can look non-parametric tests.

I don't have any specific recommendations of packages for the K-W test, but it looks like you can do it directly in base R. Check out this guide: http://www.sthda.com/english/wiki/kruskal-wallis-test-in-r You do the test directly on the data, not on an asreml model

Hope that helps. Sam