* do-file for Supplementary Exercises 8.84 and 8.85 of IPS7e version 15 /* works also for versions 13-14 */ * 8.84: confidence intervals * classical (z) CI cii 100 68, wald * plus four CI, manually constructed cii 104 70, wald * extra: wilson method similar to "plus four" cii 100 68, wilson * extra: agresti-coull method similar to "plus four" cii 100 68, agresti * "exact" CI based on the binomial distribution cii 100 68 * 8.85: tests * test and 95% CI based on normal approximation prtesti 100 68 0.75, count * exact test based on the binomial distribution - preferable! bitesti 100 68 0.75