inst/snippets/Example6.3.R

p.hat <- 52/100; p.hat            
SE <- sqrt(p.hat * (1 - p.hat) / 100); SE    # est. SE
p.hat - 1.96 * SE                            # lower end of CI 
p.hat + 1.96 * SE                            # upper end of CI

Try the Lock5withR package in your browser

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

Lock5withR documentation built on May 2, 2019, 3:43 p.m.