Re: [R] Testing for normality in categorical data

2019-10-05 Thread Jim Lemon
Hi Nancy, The chickwts dataset contains one sort-of continuous variable (weight) and a categorical variable (feed). Two things that will help you to understand what you are trying to do is to "eyeball" the "weight" data: # this shows you the rough distribution of chick weights

Re: [R] Testing for normality in categorical data

2019-10-05 Thread Bert Gunter
Categorical data cannot be normal. What you are doing is statistical nonsense, as your error messages suggest. You need to consult a local statistician for help. Furthermore, statistical questions are generally OT on this list, which is about R programming. Bert Gunter "The trouble with having

[R] Testing for normality in categorical data

2019-10-05 Thread Nancy Felix
Hello I have data that are categorical both independent variable and dependent as well having levels more than 3. How can i check the normality of my data? I have tried the example given of Shapiro-Wilk for levels of factors data summary(chickwts) ## linear model and ANOVA fm <- lm(weight ~