inst/snippet/binomtest-power01.R

qbinom(0.025,100,0.5)       # find q with pbinom(q,100,0.5) >= 0.025
pbinom(39:40,100,0.5)       # double checking

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.