I want to check for the normality of my data using a Shapiro-Wilk test. It worked fine for all the other variables I have looked at, but suddenly it says "sample size must be between 3 and 5000". I am definitely in this range (n=21).
I have a column of data with 2 land management strategies (text), and a column containing a protein value (numbers). I want to see whether each management type's protein values are normally distributed. Below is the code. I would really appreciate your help with this!
Thanks
Daniel
#csv file name "Mean_Protein
attach(Mean_Protein)
RP.vnp <- Mean_Protein$Management == "VNP" #first management system
RP.konv <- Mean_Protein$Management == "KONV" #second management system
Since this is most likely related to your specific data, to help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
In the CSV file itself, Management is simply showing as "Management", not "I...Management" as in R Studio. I don't know why but perhaps that plays a role here too?