[R] Adding parameters for Benchmark normal distribution in shapiro.test

Christofer Bogaso bog@@o@chr|@to|er @end|ng |rom gm@||@com
Tue Sep 3 01:26:17 CEST 2024


Hi,

In ?shapiro.test, there seems to be no option to pass mean and sd
information of the Normal distribution which I want to compare my
sample data to.

For example in the code below, I want to test my sample to N(0, 10).

shapiro.test(rnorm(100, mean = 5, sd = 3))

Is there any way to pass the information of the benchmark normal distribution?



More information about the R-help mailing list