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

2024-09-02 Thread Ben Bolker
From Shapiro and Wilk's paper: > The objective is to derive a test for the hypothesis that this is a sample from a normal distribution with unknown mean mu and unknown variance sigma^2 That is, the estimates of the mean and SD are folded into the derivation of the test statistic. If y

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

2024-09-02 Thread Jeff Newmiller via R-help
Wouldn't that be because the sample is not being compared to a specific distribution but rather to many possible distributions by MC? [1] If you think that need not be the case, perhaps you can write your own test... but then it will probably be answering a different question? [1] https://en.m.

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

2024-09-02 Thread Christofer Bogaso
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 in