Advertisement
Spartrap

95%CI for Aza+Rigo true effect

Nov 16th, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. alpha=0.05
  2. n=39
  3. n_success=25
  4. p=n_success/n
  5.  
  6. ci=qnorm(1-alpha/2) * sqrt( (p * (1-p)) / n )
  7.  
  8. message( "p: ", round(p,2), " +/-", round(ci,2), ", ", round(p-ci,2), "-", round(p+ci,2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement