* do-file for Supplementary Exercises 8.84 and 8.85 of IPS7e version 18 /* works also with versions 13-17 */ * 8.84: confidence intervals * classical (z) CI cii proportions 100 68, wald * plus four CI, manually constructed cii proportions 104 70, wald * extra: wilson method similar to "plus four" cii proportions 100 68, wilson * extra: agresti-coull method similar to "plus four" cii proportions 100 68, agresti * "exact" CI based on the binomial distribution cii proportions 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