In Julia, I want to test the normality of a variable for each group defined in another column in a dataframe.
Lets say we have:
df = DataFrame(x = rand(Normal(),30), group = repeat(["A", "B"],15))
I know I can test the normality of x with :
using HypothesisTests
using Distributions
OneSampleADTest(x, Normal())
So the question is how do I test the normality of x for each group ? In R, I would use tapply() but I couldn't find the equivalent in Julia...