To solidify our understanding of sampling distributions, we will work on two R lab assignments this coming week. Labs 7A and 7B will focus on the sampling distribution of sample proportions and sample means, respectively. In preparation for these two lab assignments, we will go through R code related to Activities 7.1B and 7.2.
Pre-Lab Instructions
Before class on Tuesday, November 26, please have the following items completed:
- Download R and RStudio. Refer to my previous post.
- Download files in the Chapter 7 Labs repository on the Github site for our course. On that repository site, you can click on the green “Clone or download” button and then click “Download ZIP” to download all of the following files in a zip folder.
Files
The following are the files (found in the Chapter 7 Labs Github repository) that you will need for Labs 7A and 7B:
Lab_7A_GroupN.docx
andLab_7B_GroupN.docx
- Replace “N” with your group number. See Group Assignments on this post for your group number.
- Please type your responses directly in these two documents and insert R graphics for questions that require plots.
activity_7_1b.R
andactivity_7_2.R
- Associated code for Activities 7.1B and 7.2.
- You can adapt the code in these two files for the lab assignments.
Submission Instructions
Each group will submit one Word document and accompanying R code for each lab assignment to me via WeChat by the deadlines listed on the Schedule section of the course website.
Please note the lab instructions, which state the required format of the file-naming convention for both the Word documents and R files.
Fill the table on the top of each Word document with your group number, English full names, and seat numbers.
Group Assignments
The following are the group assignments listed by your seat number in class.
Group | Member 1 | Member 2 | Member 3 | Member 4 |
---|---|---|---|---|
1 | 1-1 | 1-2 | 2-1 | |
2 | 1-3 | 2-2 | 2-3 | |
3 | 1-4 | 2-4 | 2-5 | 2-6 |
4 | 3-0 | 3-1 | 3-2 | |
5 | 3-3 | 4-2 | 4-3 | |
6 | 3-4 | 3-5 | 3-6 | 4-5 |
7 | 4-1 | 5-1 | 5-2 | |
8 | 4-4 | 5-3 | 5-4 |
Expectation
Please make sure that all members of your team are involved in both the coding and analysis portions of the lab assignments. You may consult with members of other groups, but you may not copy code directly from other groups. If you are unsure about the collaboration policy or have any issues with the allocation of work within your group, please let me know.