STAT 1301/2300 – “Statistical Packages”
Fall 2014, Tuesday-Thursday 4:00-5:15PM, CL 230
Homework 8. Due date December 1, 2014
Assignments: R Textbook
Exercises 4.4 - 4.5 (page 94)
Exercises 5.1 - 5.5 (page 107)
Exercises 9.2 - 9.4 (page 162)
Additional exercises (These will not be graded; Do not submit.)
5.6, 6.1, 6.3, 7.1, 7.2
Homework 7. Due date November 17, 2014.
Reading: R Textbook Chapters 4, 5, and 9.
Assignments: R Textbook
Exercises 1.5 (page 28)
Excercises 2.1 - 2.2 (page 53)
Exercises 3.1 - 3.4 (page 65)
Exercises 4.2 - 4.3 (page 94)
Note:
- Feel free to take a look at solutions to exercises at Appendix D of the textbook.
- Data sets may be loaded from the ISwR package.
Homework 6. Due date November 10, 2014.
Reading: R Textbook Chapters 1-3.
Assignments: R Textbook
Exercises 1.1 - 1.4 (page 28)
Note:
- Feel free to take a look at solutions to exercises at Appendix D of the textbook.
- Data sets may be loaded from the ISwR package.
Homework 5. Due date November 3, 2014.
SAS Textbook
Exercises 1 and 4 in Chapter 6 (page 126),
Exercise 1.1, 1.4, 2.1, 2.2 Chapter 7 (page 143).
Solution codes: hw5solutions.docx
Homework 4. Due date October 27, 2014.
SAS Textbook Exercises 1 and 2 in Chapter 4 (page97) and Exercise 2, Chapter 5 (page 108).
Use genotypes.dat (from the textbook data folder) for Chapter 5, Exercise 2.
Homework 3. Due date September 22, 2014.
SAS Textbook Exercises 3 and 4 in Chapter 3 (page 82) and
A.
The data in the following table for 53 married couples give the number
of cases in which a tall or short man was mated with a tall or short
woman.
| Wife-Tall | Wife-Short |
Husband-Tall | 18 | 14 |
Husband-Short | 12 | 9 |
Perform
(a) McNemar's test and (b) Chi-squared test. Be sure to discuss the
underlying hypothesis that you would reject or accept.
B. The
data in the following table are excerpted from an article (Inskip et
al., 2001) from New England Journal of Medicine. Is cell phones usage
associated with brain tumor?
Cell phone use | Control group | Brian Tumor group |
No Use | 440 | 471 |
1-5 times in life | 105 | 94 |
> 5 times in life | 232 | 194 |
Regular use | 172 | 139 |
Homework 2. Due date September 15, 2014.
SAS Textbook Exercises 1 and 2 in Chapter 2 (page 60), include all subproblems.
Note:
- Collection of the homework is through courseweb.
- Partial solutions to some exercises are available at page 369.
Homework 1. Due date September 8. 2014.
Collection of the homework is through courseweb.
Based on the hypothetical
slimmingclub data, we want to know if there is any association between
startweight and weightloss. Do people with higher initial weights lose more
weight? Use proc corr to answer this question.
What to report:
1.
Your own SAS
program (including a data step and a proc step)
2.
A relevant table
from your Output (or Result Viewer) window, to draw conclusion
3.
Interpretation of
the result
What not to report:
1.
Whole program,
including mistakes and redundant parts
2.
Whole outputs
from redundant steps