求救,R高手:须用R简答,还得列出“全”过程(欲哭无泪~~),你面对的是一个完全未入R门的……有偿编程不知道怎么弄,不过这个有得商量的~~
Question 1:
The mean serum-creatinine level measured in 12 patients 24hours after they receive a newly proposed antibiotic was1.2mg/dL.
a) If the mean and standard deviation of serum creatinine in thegeneral population are 1.0 and 0.4 mg/dL, repectively, then,whether the mean serum-creatinine level in this group is differentfrom that of the general population?(use a significance level of0.05)(20’)
b) What is the p-value for the test in problem a)?(20’)
c) Estimate the 95% confidence interval of the meanserum-creatinine level according to the sample.(20’)
Question 2:
Mr Zhang is a biochemical PhD candidate in Jiaotong University.After so many years training, he can achieve 20% success rate inWestern-Blot experiment. Yesterday he received a request from hisPI, asking him to do this experiment for a novel protein in oneweek (7 days). He can only do the experiment one time a day.Once got a good result, he will stop.
1. What’s the probability of doing the experiment successfullybefore deadline?(hint: Geometric distribution(similar but NOTbinomial distribution), pgeom() or 1- failure rate) .(20’)
2. How many times should he do to increase the probability to95%?(20’)