Minor changes
This commit is contained in:
parent
a66cd2a287
commit
f052a42c03
3 changed files with 29 additions and 9 deletions
10
source/statistics/code/ztest_pvalue.R
Normal file
10
source/statistics/code/ztest_pvalue.R
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
N=rnorm(9999999,mean=0,sd=1)
|
||||
cdf=ecdf(N)
|
||||
zscore=-1.8
|
||||
|
||||
message(paste0("Alpha approximated is ",cdf(zscore)))
|
||||
message(paste0("Alpha from built-in CDF ",pnorm(zscore,mean=0,sd=1)))
|
||||
message(paste0("Bonus: zscore from p-value ",qnorm(0.02275,mean=0,sd=1)))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue