Advertisement
Guest User

382xm3

a guest
May 4th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.00 KB | None | 0 0
  1. ===================HW7======================================================================================
  2. ============================================================================================================
  3. 1. For the dental study example, suppose we assume that every girl has the same intercept and slope (no random effects) and every boy has the same intercept and slope (no random effects). The intercept and slope for girls may be different from those of boys. Compare the intercepts and slopes of girls and boys group. Consider a few different variance-covariance structure of the error term within each subject: (i) Independence with the same variance (this may be accomplished by not including a repeated statement at all) (ii) Homogeneous compound symmetry (iii) Homogeneous AR(1). Choose the one you think fit the model best.
  4. a. Write down the statistical model you analyze.
  5. b. Are slopes statistically different from each other?
  6. ++++++++++++++++++>Code+++++++++++++++++++++++++++++++++
  7. /*******************************************************************
  8.  
  9. Analysis of the dental study data by fitting a random coefficient
  10. model in time using PROC MIXED.
  11.  
  12. - the repeated measurement factor is age (time)
  13.  
  14. - there is one "treatment" factor, gender
  15.  
  16. The model for each child is assumed to be a straight line.
  17. The intercepts and slopes may have different means depending on
  18. gender, with the same covariance matrix D for each gender.
  19.  
  20. We use the RANDOM and REPEATED statements to fit models that
  21. make several different assumptions about the forms of the matrices
  22. Ri and D.
  23.  
  24. *******************************************************************/
  25.  
  26. options ls=80 ps=59 nodate; run;
  27.  
  28. /******************************************************************
  29.  
  30. Read in the data set (See Example 1 of Chapter 4)
  31.  
  32. *******************************************************************/
  33.  
  34. data dent1; infile 'C:\Users\Min\Box Sync\teaching\Spring 2015\Stat 382\datasets\dental.dat';
  35. input obsno child age distance gender;
  36. run;
  37.  
  38. * Independent case;
  39.  
  40. proc mixed method=ml data=dent1;
  41. class gender child;
  42. model distance = gender gender*age / noint solution;
  43. * estimate 'diff in mean slope' gender 0 0 gender*age 1 -1;
  44. * contrast 'overall gender diff' gender 1 -1, gender*age 1 -1 /chisq;
  45. run;
  46.  
  47. * CS structure;
  48. proc mixed method=ml data=dent1;
  49. class child gender;
  50. model distance = gender gender*age / noint solution;
  51. repeated / type=cs subject=child;
  52. * estimate 'diff in mean slope' gender 0 0 gender*age 1 -1;
  53. * contrast 'overall gender diff' gender 1 -1, gender*age 1 -1 /chisq;
  54. run;
  55.  
  56. * AR(1);
  57. proc mixed method=ml data=dent1;
  58. class child gender;
  59. model distance = gender gender*age / noint solution;
  60. repeated / type=ar(1) subject=child;
  61. * estimate 'diff in mean slope' gender 0 0 gender*age 1 -1;
  62. * contrast 'overall gender diff' gender 1 -1, gender*age 1 -1 /chisq;
  63. run;
  64.  
  65. * UN;
  66. proc mixed method=ml data=dent1;
  67. class child gender;
  68. model distance = gender gender*age / noint solution;
  69. repeated / type=un subject=child;
  70. * estimate 'diff in mean slope' gender 0 0 gender*age 1 -1;
  71. * contrast 'overall gender diff' gender 1 -1, gender*age 1 -1 /chisq;
  72. run;
  73.  
  74.  
  75. ==========================================================================>
  76. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2
  77. ==========================================================================>
  78.  
  79. 2. For the weight-lifting example, suppose we assume that a subject’s intercept depends on the subject’s weight, age, and previous weight experience only (no random effects), and slope depends weight, age, previous weight experience and the treatment effect (diet or no-diet). Consider a few different variance-covariance structure of the error term within each subject: (i) Independence with the same variance (this may be accomplished by not including a repeated statement at all) (ii) Homogeneous compound symmetry (iii) Homogeneous AR(1). Choose the one you think fit the model best.
  80. a. Write down the statistical model you analyze
  81. b. Is the diet treatment effective?
  82.  
  83. ++++++++++++++>SAS CODE+++++++++++++++++++++++++++++++
  84. /*******************************************************************
  85.  
  86. Illustration of fitting a linear mixed effects model derived
  87. from a random coefficient model, where the mean slope in each
  88. group depends on a continuous covariate.
  89.  
  90. The model for each man is assumed to be a straight line.
  91. The intercepts are taken to depend on baseline covariates.
  92. The slopes are taken to depend on baseline covariates, differentially
  93. by group (diet or not).
  94.  
  95. We take D to be common for both groups and take Ri to be
  96. common to both groups of the form Ri = sigma^2 I.
  97.  
  98. *******************************************************************/
  99.  
  100. options ls=80 ps=59 nodate; run;
  101.  
  102. /******************************************************************
  103.  
  104. Read in the data set
  105.  
  106. *******************************************************************/
  107.  
  108. data pdat; infile "C:\Users\Min\Box Sync\teaching\Spring 2015\Stat 382\datasets\press.dat";
  109. input id time press weight age prev diet;
  110. run;
  111.  
  112. /*******************************************************************
  113.  
  114. Use PROC MIXED to fit linear mixed effects model (i); we use
  115. normal ML rather than REML to get likelihood ratio tests
  116.  
  117. *******************************************************************/
  118.  
  119.  
  120. ** independent;
  121. proc mixed method=ml data=pdat;
  122. class id;
  123. model press = weight prev age
  124. time time*diet time*age time*prev time*diet*prev;
  125. run;
  126.  
  127. ** CS struture;
  128. proc mixed method=ml data=pdat;
  129. class id;
  130. model press = weight prev age
  131. time time*diet time*age time*prev time*diet*prev;
  132. repeated /type=cs subject=id;
  133. run;
  134.  
  135. ** AR(1) structure;
  136. proc mixed method=ml data=pdat;
  137. class id;
  138. model press = weight prev age
  139. time time*diet time*age time*prev time*diet*prev;
  140. repeated /type=Ar(1) subject=id;
  141. run;
  142.  
  143.  
  144. proc mixed data=pdat;
  145. class id;
  146. model press = weight prev age
  147. time time*diet time*prev time*diet*prev / solution;
  148. repeated /type=AR(1) subject=id;
  149. /* estimate "slp, diet, no prev" time 1 time*diet 1;
  150.  
  151. estimate "slp, no diet, prev" time 1 time*prev 1;
  152. estimate "slp, diet, prev" time 1 time*prev 1 time*diet 1 time*diet*prev 1;
  153. contrast "overall slp diff" time*diet 1,
  154. time*prev 1,
  155. time*diet*prev 1 / chisq;
  156. contrast "prev effect" time*prev 1, time*diet*prev 1 / chisq;
  157. */
  158. contrast "diet effect" time*diet 1, time*diet*prev 1 /chisq;
  159. run;
  160.  
  161. ====================================================================================>
  162. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  163. ====================================================================================> 3
  164.  
  165. 3. In a clinical trial of studying the effects of AZT in slowing the development of AIDS symptoms. In the study, 338 veterans whose immune systems were beginning to falter after infection with the AIDS virus were randomly assigned either to receive AZT immediately or to wait until their T cells showed severe immune weakness. The following table shows whether they received AZT treatment and whether they developed AIDS symptoms during the 3-year study.
  166. Use logistic regression model to analyze this table.
  167. a. Write down the statistical model you analyze
  168. b. What is the odds ratio between AZT use and development of AIDS symptoms? What is the confidence interval?
  169.  
  170. +++++++++++++++++++++>SAS CODE================================>
  171.  
  172. data AZT;
  173. input race $ AZT $ Symptoms $ count;
  174. cards;
  175. white yes yes 14
  176. white yes no 93
  177. white no yes 32
  178. white no no 81
  179. black yes yes 11
  180. black yes no 52
  181. black no yes 12
  182. black no no 43
  183. ;
  184.  
  185. proc logistic data=AZT;
  186. class race AZT/param=ref;
  187. model Symptoms(event='no')=race azt;
  188. weight count;
  189. run;
  190.  
  191. ============================================================>
  192. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> 4
  193. ==============================================================>
  194.  
  195. options nodate ls=75; run;
  196.  
  197. /* Read in the data */
  198.  
  199. data lead; infile "C:\Users\Min\Box Sync\teaching\Spring 2015\Stat 382\datasets\lead.dat";
  200. input id age gender week lead trt;
  201. time=week;
  202. run;
  203. /* Fit of model with common D and common within-child variance */
  204.  
  205. **fixed model;
  206.  
  207. title "M1";
  208. proc mixed method=ml data=lead;
  209. class trt id week;
  210. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  211. repeated week/subject=id;
  212. run;
  213.  
  214. title "M2";
  215. proc mixed method=ml data=lead;
  216. class trt id week;
  217. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  218. repeated week/type=cs subject=id;
  219. run;
  220.  
  221. title "M3";
  222. proc mixed method=ml data=lead;
  223. class trt id week;
  224. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  225. repeated week/type=ar(1) subject=id;
  226. run;
  227.  
  228. title "M4";
  229. proc mixed method=ml data=lead;
  230. class trt id week;
  231. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  232. repeated week/type=un subject=id;
  233. run;
  234.  
  235.  
  236. title "check gender effects";
  237. proc mixed method=ml data=lead;
  238. class trt id week;
  239. model lead = age time*trt time*age*trt / solution;
  240. repeated week/type=un subject=id;
  241. run;
  242.  
  243. proc mixed method=reml data=lead;
  244. class trt id week;
  245. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  246. repeated week/type=un subject=id;
  247. contrast "gender effects" gender 1, age*gender 1, time*trt*gender 1 0 0, time*trt*gender 0 1 0,
  248. time*trt*gender 0 0 1, time*age*gender*trt 1 0 0,
  249. time*age*gender*trt 0 1 0, time*age*gender*trt 0 0 1/chisq;
  250. run;
  251.  
  252.  
  253.  
  254. **random model;
  255.  
  256. title "M1";
  257. proc mixed method=ml data=lead;
  258. class trt id week;
  259. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  260. random intercept time/type=un subject=id;
  261. * repeated week/subject=id;
  262. run;
  263.  
  264. title "M2";
  265. proc mixed method=ml data=lead;
  266. class trt id week;
  267. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  268. random intercept time/type=un subject=id;
  269. repeated week/type=cs subject=id;
  270. run;
  271.  
  272. title "M3";
  273. proc mixed method=ml data=lead;
  274. class trt id week;
  275. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  276. random intercept time/type=un subject=id;
  277. repeated week/type=ar(1) subject=id;
  278. run;
  279.  
  280. title "M4";
  281. proc mixed method=ml data=lead;
  282. class trt id week;
  283. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  284. random intercept time/type=un subject=id;
  285. repeated week/type=un subject=id;
  286. run;
  287.  
  288.  
  289. title "check gender effects";
  290. proc mixed method=ml data=lead;
  291. class trt id week;
  292. model lead = age time*trt time*age*trt;
  293. random intercept time/type=un subject=id;
  294. * repeated week/subject=id;
  295. run;
  296.  
  297. proc mixed method=reml data=lead;
  298. class trt id week;
  299. model lead = age gender age*gender time*trt time*age*trt time*trt*gender time*age*gender*trt;
  300. random intercept time/type=un subject=id;
  301. contrast "gender effects" gender 1, age*gender 1, time*trt*gender 1 0 0, time*trt*gender 0 1 0,
  302. time*trt*gender 0 0 1, time*age*gender*trt 1 0 0,
  303. time*age*gender*trt 0 1 0, time*age*gender*trt 0 0 1/chisq;
  304. run;
  305.  
  306. =======================================================================================>
  307. =======================================================================================================
  308. ============================= HW 6 TOM=========================================================================
  309. =======================================================================================>
  310. =======================================================================================================
  311. ======================================================================================================
  312.  
  313.  
  314. * Tom Holmes;
  315.  
  316. *Problem 1;
  317. *H0: Diet A is not better than Diet B;
  318. *H1: Diet A is better than Diet B;
  319. proc power;
  320. twosamplemeans groupmeans=(0 8) stddev=16 alpha=0.05 sides=1 power=0.5 npergroup=.;
  321. run;
  322.  
  323.  
  324.  
  325. /*
  326. She needs to assume that the blood glucose levels for each group is normally distributed.
  327.  
  328. Note that it doesn't matter what the group means actually are as long as they differ by 8.
  329.  
  330. Power = .9
  331. Actual Power N Total N Per Group
  332. 0.903 140 70
  333.  
  334. Power = .8
  335. Actual Power N Total N Per Group
  336. 0.806 102 51
  337.  
  338. Power = .7
  339. Actual Power N Total N Per Group
  340. 0.707 88 44
  341.  
  342. Power = .6
  343. Actual Power N Total N Per Group
  344. 0.606 60 30
  345.  
  346. Power = .5
  347. Actual Power N Total N Per Group
  348. 0.510 46 23
  349. */
  350.  
  351. *Problem 2;
  352. *H0: Men are not better at detecting the sound than women.;
  353. *H1: Men are better are detecting the sound than women.;
  354. proc power;
  355. twosamplemeans groupmeans=(0 .25) stddev=.2 alpha=0.05 sides=1 power=. npergroup=20;
  356. run;
  357.  
  358. /*
  359. She needs to assume that the response time for each group is normally distributed.
  360.  
  361. Mean Difference Power
  362. .05 0.193
  363. .1 0.463
  364. .15 0.753
  365. .2 0.928
  366. .25 0.987
  367. */
  368.  
  369. *Problem 3;
  370. *Same hypothesis as problem 1;
  371. *H0: Diet A is not better than Diet B;
  372. *H1: Diet A is better than Diet B;
  373. proc power;
  374. twosamplewilcoxon
  375. vardist("DietA") = uniform(50,80)
  376. vardist("DietB") = normal(75, 100)
  377. variables = "DietA" | "DietB"
  378. alpha=0.05
  379. sides=1
  380. power = 0.5
  381. ntotal = .;
  382. run;
  383.  
  384. /*
  385. That specified variance is absolutely crazy.
  386.  
  387. Actual Power N Total N Per Group
  388. 0.900 2106 1053
  389.  
  390. Actual Power N Total N Per Group
  391. 0.800 1470 735
  392.  
  393. Actual Power N Total N Per Group
  394. 0.700 1082 541
  395.  
  396. Actual Power N Total N Per Group
  397. 0.600 798 399
  398.  
  399. Actual Power N Total N Per Group
  400. 0.501 572 286
  401. */
  402.  
  403. *Problem 4;
  404. *Same hypothesis as problem 2;
  405. *H0: Men are not better at detecting the sound than women.;
  406. *H1: Men are better are detecting the sound than women.;
  407. proc power;
  408. twosamplewilcoxon
  409. vardist("Men") = gamma(2, .05)
  410. vardist("Women") = exponential(.2)
  411. variables = "Men" | "Women"
  412. alpha=0.05
  413. sides=1
  414. power =.
  415. npergroup =40;
  416. run;
  417.  
  418.  
  419.  
  420. /*
  421. N Per Group Power
  422. 10 0.308
  423. 20 0.474
  424. 30 0.606
  425. 40 0.709
  426. */
  427.  
  428. data problem5;
  429. input FeedRate Catalyst AgitRate Temp Concen ReactionPercentage @@;
  430. datalines;
  431. 10.0 1.0 100 140 6.0 37.5
  432. 10.0 1.0 120 180 3.0 28.5
  433. 10.0 2.0 100 180 3.0 40.4
  434. 10.0 2.0 120 140 6.0 48.2
  435. 15.0 1.0 100 180 6.0 50.7
  436. 15.0 1.0 120 140 3.0 28.9
  437. 15.0 2.0 100 140 3.0 43.5
  438. 15.0 2.0 120 180 6.0 64.5
  439. 12.5 1.5 110 160 4.5 39.0
  440. 12.5 1.5 110 160 4.5 40.3
  441. 12.5 1.5 110 160 4.5 38.7
  442. 12.5 1.5 110 160 4.5 39.7
  443. 10 2.0 120 130 7.0 .
  444. ;
  445. run;
  446. proc print; run;
  447.  
  448. proc reg data=problem5;
  449. model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen;
  450. run;
  451.  
  452. /*
  453. Problem 5
  454. 1.
  455. The model form with all five factors as independent variables is:
  456.  
  457. ReactionPercentage = B_0 + B_1*FeedRate + B_2*Catalyst + B_3*AgitRate + B_4*Temp + B_5*Concen
  458.  
  459. The actual model is:
  460. ReactionPercentage = -43.69167 + 1.65000*FeedRate + 12.75000*Catalyst + -0.02500*AgitRate + 0.16250*Temp + 4.96667*Concen
  461.  
  462. R-Square of this model is 0.9652 and the Adjusted R-Square is 0.9362
  463. */
  464.  
  465. proc glm data=problem5;
  466. model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen;
  467. run;
  468.  
  469. proc glm data=problem5;
  470. model ReactionPercentage=FeedRate Catalyst Temp Concen;
  471. run;
  472.  
  473. proc reg data=problem5;
  474. model ReactionPercentage=FeedRate Catalyst Temp Concen;
  475. run;
  476.  
  477.  
  478. /*
  479. 2.
  480. It seems like the variable AgitRate is not significant.
  481. Removing that model, we have the following:
  482. R-Square = 0.9647 (Lower), but the Adjusted R-Square is 0.9446 Which is higher.
  483. We will trust the Adjusted R-Square and assume we made the right choice.
  484.  
  485. 3. The Final Model is the following
  486. ReactionPercentage = -46.44167 + 1.65000*FeedRate + 12.75000*Catalyst + 0.16250*Temp + 4.96667*Concen
  487. */
  488. ods select all;
  489. proc reg data=problem5 ;
  490. model ReactionPercentage = FeedRate Catalyst Temp Concen/clb cli clm p;
  491. output out=info p=rpredict lcl=lp ucl=up lclm=lm uclm=um;
  492. run;
  493. /*
  494. 4.
  495. The 95% confidence intervals of the parameters are:
  496. Intercept(B_0): -66.16853 -26.71480
  497. FeedRate 0.88954 2.41046
  498. Catalyst 8.94769 16.55231
  499. Temp 0.06744 0.25756
  500. Concen 3.69923 6.23410
  501. */
  502.  
  503.  
  504.  
  505. /*
  506. 5. The 95% confidence interval of the expected mean of the first observation is:
  507. 31.2514 39.4653
  508. */
  509. proc mixed data=problem5 cl;
  510. model ReactionPercentage = FeedRate Catalyst Temp Concen/solution;
  511. estimate 'Part6' intercept 1 FeedRate 10 Catalyst 2 Temp 130 Concen 7;
  512. run;
  513.  
  514. proc print data=info; run;
  515. /*
  516. 6.
  517. The 95% confidence interval of the expected mean of the given entry is:
  518. 46.1764 56.7236
  519. The 95% confidence interval of the predicted value is:
  520. 43.9183 58.9817
  521. The predicted value is:
  522. 51.4500
  523. */
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531. proc reg data=problem5;
  532. *model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen
  533. / selection=forward details=summary;
  534. *model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen
  535. / selection=backward details=summary;
  536. model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen
  537. / selection=maxr details=summary;
  538. run;
  539.  
  540.  
  541.  
  542.  
  543. proc reg data=problem5;
  544. model ReactionPercentage = FeedRate Catalyst Temp Concen/clb cli clm p;
  545. output out=info p=rpredict lcl=lp ucl=up lclm=lm uclm=um;
  546. run;
  547. proc print data=info; run;
  548.  
  549. =======================================================================================>
  550. =======================================================================================================
  551. ============================= HW 6 ME =========================================================================
  552. =======================================================================================>
  553. =======================================================================================================
  554. ======================================================================================================
  555.  
  556. *number one;
  557.  
  558. proc power;
  559. twosamplemeans test=diff
  560. meandiff = 8
  561. stddev = 16
  562. power = .5, .6, .7, .8, .9
  563. npergroup = . ;
  564. run;
  565.  
  566. *number two;
  567.  
  568. proc power;
  569. twosamplemeans test=diff
  570. meandiff = 0.05, 0.1, 0.15, 0.2, .25
  571. stddev = .2
  572. power = .
  573. npergroup = 20 ;
  574. run;
  575.  
  576. *number three;
  577. proc power;
  578. twosamplewilcoxon
  579. VARDIST("Group A") = UNIFORM(50,80)
  580. VARDIST("Group B") = NORMAL(75,100)
  581. variables= "Group A" | "Group B"
  582. nperg= .
  583. power=.5, .6, .7, .8, .9;
  584. run;
  585. *number four;
  586. proc power;
  587. twosamplewilcoxon
  588. VARDIST("Male")=GAMMA(2,.05)
  589. VARDIST("Female")=EXPONENTIAL(.2)
  590. Variables="Male"|"Female"
  591. nperg=10, 20, 30, 40
  592. power= . ;
  593. run;
  594. *number five;
  595. data materials;
  596. input FeedRate Catalyst AgitRate Temp Concen ReactionPercentage @@;
  597. datalines;
  598. 10 1 100 140 6 37.5
  599. 10 1 120 180 3 28.5
  600. 10 2 100 180 3 40.4
  601. 10 2 120 140 6 48.2
  602. 15 1 100 180 6 50.7
  603. 15 1 120 140 3 28.9
  604. 15 2 100 140 3 43.5
  605. 15 2 120 180 6 64.5
  606. 12.5 1.5 110 160 4.5 39
  607. 12.5 1.5 110 160 4.5 40.3
  608. 12.5 1.5 110 160 4.5 38.7
  609. ;
  610. proc reg data=materials;
  611. model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen;
  612. run;
  613. proc reg data=materials;
  614. model ReactionPercentage=FeedRate Catalyst Temp Concen;
  615. run;
  616. pro reg data=materials;
  617. model ReactionPercentage=FeedRate Catalyst AgitRate Temp Concen/clb cli clm p;
  618. output out=a2 p=b lcl=c ucl=d lclm=e uclm=f;
  619. run;
  620.  
  621.  
  622.  
  623. ===============================================================================
  624. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==
  625. ===============================================================================
  626. +++++++++++++++++++++++++++ EXAM 2 ++++++++++++++++++++++++++++++++++++++++++++++==
  627. ===============================================================================
  628. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==
  629.  
  630. http://rpubs.com/mxmrt/stat382_exam2
  631.  
  632. 1. A company conducted a clinical trial to test a drug treatment for treating bilirubin abnormalities. 86 patients were treated with an experimental drug for 3 months. The following is the summary of the data.
  633.  
  634. Pre-treatment Post-treatment
  635. Yes No
  636. Yes 6 14
  637. No 6 60
  638. “Yes” means total bilirubin is above upper limit of normal range
  639. Is there evidence of a change in the pre to post-treatment rates of abnormalities?
  640. 2. Lamb’squarter is a common weed in corn fields. A researcher planted corn at the same rate in 8 small plots of ground, then weeded the corn rows by hand to allow no weeds in 4 randomly selected plots and exactly 3 lamb’s-quarter plants per meter of row in the other 4 plots. Here are the yields of corn (bushels per acre) in each of the plots:
  641. 0 weeds per meter 166.7, 172.2, 165.0, 176.9
  642. 3 weeds per meter 158.6, 176.4, 153.1, 156.0
  643. Choose a proper statistical test to determine whether the presence of small numbers of weeds reduce the yield of corn.
  644.  
  645. 3. To test whether Drug 6-MP is effective, 10 leukaemia patients (for easy data entry, we just use 10 data point) were divided into two treatment groups: Drug 6-MP and Control. The remission times in weeks for these patients are as following:
  646. Drug 6-MP 6, 6, 6*, 7, 9*
  647. Control 1, 2, 2, 3, 4
  648. *indicates the survival time is censored.
  649. Can we conclude that Drug 6-MP is effective in term of survival time compared with control treatment?
  650.  
  651.  
  652.  
  653. For the following two problems, you only need to write down the null and alternative hypotheses, as well as the appropriate statistical test for testing the hypotheses.
  654. 4. A study considered the effect of prednisolone on severe hypercalcaemia in women with metastatic breast cancer. Of 30 patients, 15 were randomly selected to receive prednisolone. The other 15 formed a control group. Normalization in their level of serum-ionized calcium was achieved by 7 of the treated patients and none of the control group. Analyze whether results were significantly better for treatment than for control.
  655.  
  656. 5. In 1878 Charles Darwin recorded some data on the heights of Zea mays plants to determine what effect cross-fertilization or self- fertilization had on the height of Zea mays. The experiment was to select one cross-fertilization and self- fertilization, grow them in the same pot, and later measure their heights. The experiment was conducted on 6 pots. Let (Xi,Yi), be the height of cross-fertilization and the height of self-fertilization at pot i, i=1,…,6. Charles Darwin wanted to know whether the cross-fertilization plants are generally taller than the self-fertilization plants. Set up null and alternative hypotheses, and describe your plan to perform the statistical test.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement