[R] question for mshapiro test
liuliang at stat.ohio-state.edu
Thu Jan 12 03:04:36 CET 2006
I have a question about the p-value of mshapiro test. I simulated data
from bivariate normal 1000 times and used mshapiro test to see how many
times the test would reject the null hypothesis when the p-value is 0.05.
The answer should be around 50 since the p-value is 0.05. But I got a much
higher value. Here is the R code I used and the result.
ntrial = 1000
count = 0
for( trial in 1:ntrial)
if( p<= 0.05) count <- count+1
Can you help me out? Thank you very much.
More information about the R-help