0

I want to execute Shapiro test for the following data frame (example) but I think the NA value in row 5 could change the result. How can I disregard the row for the analysis without excluding the row containing the NA value?

id subject measurement
1 control 0.151708
2 control 0.239930
3 patient 0.104289
4 patient 0.329139
5 patient NA

Would be nice if the Shapiro function accepted 'na.rm' or 'na.omit' as argument. However, it doesn't work.

byf.shapiro(dados_novo$measurement ~ dados_novo$subject, dados_novo, na.rm=TRUE)

0 Answers0