Seeing if data is normally distributed in R

前端 未结 8 1577
我寻月下人不归
我寻月下人不归 2020-11-27 08:57

Can someone please help me fill in the following function in R:

#data is a single vector of decimal values
normally.distributed <- function(data) {
if(dat         


        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 09:32

    Consider using the function shapiro.test, which performs the Shapiro-Wilks test for normality. I've been happy with it.

提交回复
热议问题