Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. STATISTIC=0.0653
  2. ns=c(NA,1,2,10^(1:10))
  3. (PVAL <- sapply(ns,function(n) 2 * pt(-abs(STATISTIC), df = n - 1)))
  4. names(PVAL)=paste("n",ns,sep="=")
  5. PVAL
  6.  
  7. n=NA n=1 n=2 n=10 n=100 n=1000 n=10000 n=1e+05
  8. NA NaN 0.9584877 0.9493626 0.9480668 0.9479482 0.9479364 0.9479353
  9. n=1e+06 n=1e+07 n=1e+08 n=1e+09 n=1e+10
  10. 0.9479352 0.9479351 0.9479351 0.9479351 0.9479351
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement