Question: Please write code in R. Construction a function called ci.for.proportion which calculates confidence intervals for proportions. Your function should take three arguments, ci.for.proportion(phat, n, conf)

Please write code in R.

Construction a function called ci.for.proportion which calculates confidence intervals for proportions. Your

function should take three arguments, ci.for.proportion(phat, n, conf) where phat is the sample proportion,

n is the sample size, and conf is the level of confidence, expressed as a real number between 0 and 1.

Your function should return a list of two items, representing the lower and upper bound of a confidence interval

for the specified level of confidence

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!