Please show me the R outputs with it
(a)
From table:
P(Hip dysplasia in golden retriever) = 3995/ 46941
P(Hip dysplasia in border collie) = 221/ 5228
The relative risk is:
RR =P(Hip dysplasia in golden retriever) / P(Hip dysplasia in border collie) = ( 3995/ 46941) / ( 221/ 5228) = 2.01
Since RR is greater than 1 so it shows that risk of hip dysplasia is higher in golden retriever group.
(b)
Odds for golden retriever group:
Odds for border collie group:
Odds ratio:
(c)
The 95% confidence interval for odds ratio
So required 95% confidence interval for odds ratio is
(d)
Since confidence interval does not contain 1 so we cannot conclude that risk of hip dysplasia is same in both group.
----------------------------------------
Following is the R script:

Following is the output:

Please show me the R outputs with it 4. (15 pts) Hip dysplasia is a hip...
4. (15 pts) Hip dysplasia is a hip socket abnormality that affects many large breed dogs. A review of medical records of dogs seen at 27 veterinary medical teaching hospitals found that hip dysplasia was more common in Golden retrievers than in Border Collies; the data are shown in the following table. Golden retriever 3,995 42,946 46,941 Border collie 221 5,007 5,228 Hip dysplasia Yes No Total (a) Calculate the relative risk of hip dysplasia for Golden retriever compared to...
thats all I have
4. (15 pts) Hip dysplasia is a hip socket abnormality that affects many large breed dogs. A review of medical records of dogs seen at 27 veterinary medical teaching hospitals found that hip dysplasia was more common in Golden retrievers than in Border Collies; the data are shown in the following table. Border collie Golden retriever Hip dysplasia Yes 3,995 42,946 46,941 221 No 5,007 5,228 Total (a) Calculate the relative risk of hip dysplasia for...
Please show me the R outputs with the
answer
3. (10 pts) Elderly patients who had suffered hip fractures were randomly assigned to receive either a placebo (n=1,062) or zolendronic acid (n=1,065) in a double blind clinical trial. During the trial 139 placebo patients and 92 zolendronic acid patients had new fractures. Let pl and p2 represent the probabilities of fracture on placebo and zolendronic acid, respectively. (a) Construct the 95% confidence interval for (pl-p2) in R. Show your code...