Estimate probability of success and confidence intervals using R

164 views Asked by At

enter image description here

So this table is from a file that I display using the R code: [read.csv()].

Question: I am now ask to estimate the probability of success using the parametric method and calculate its 95% confidence intervals using the exact method according to the age and then according to the sex (Male=1, female=2).

Attempts: For the parametric method using R I thought about binom.approx. Don't know if I am right and even how to do it. For the exact method I guessed binom.confint(,,method="exact"). Again here how to code it.

0

There are 0 answers