Seeing if data is normally distributed in R

前端 未结 8 1573
我寻月下人不归
我寻月下人不归 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:28

    SnowsPenultimateNormalityTest certainly has its virtues, but you may also want to look at qqnorm.

    X <- rlnorm(100)
    qqnorm(X)
    qqnorm(rnorm(100))
    

提交回复
热议问题