Please show me the R outputs with the
answer
ans a )
> res <- prop.test(x = c(139,92), n = c(1062,1065)
,conf.level = 0.95, correct = TRUE)
> res
2-sample test for equality of proportions with continuity correction
data: c(139, 92) out of c(1062, 1065)
X-squared = 10.422, df = 1, p-value = 0.001245
alternative hypothesis: two.sided
95 percent confidence interval:
0.01717529 0.07182500
sample estimates:
prop 1 prop 2
0.13088512 0.08638498
b ) we are 95 % confident that the difference of proportion of recieved placebo and zolendronic lies in this ( 0.01717529 ,0.07182500) interval
Please show me the R outputs with the answer 3. (10 pts) Elderly patients who had...
post the r code please
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 and output. Hint: using...
Please show me the R outputs with it
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 3,995 42,946 46,941 221 Yes 5,007 5,228 No Total (a) Calculate the relative risk...