Statistic Assignment
STAT 509 Lab 1 Assignment
Instructions:
1. Due Date
· April 14 @ 11:50pm
2. Assignment submission:
· When you submit an electronic file (assignment) you must use the following format: This is for: LAST NAME (in upper case), your first name, the course code, activity/assignment number and file format
· For example: SMITHJohn-STAT509-A1.doc.
Assignment:
Following is the dictionary for a data set. The data collected on a number of people from Cornwall, Ontario, Canada who attended a lifestyle intervention program (Coronary Health Improvement Project, or better known as CHIP) consisting of a series of lectures and personal counseling sessions every day for a five day period. This data set consists of a number of demographic and clinical variables. In order for data to be easily analyzed it must first be entered into a computer data base.
· Create the Lifestyle dataset for the variables below:
|
Id |
Age |
Sex |
Exercise |
Smoke |
Frame |
Weight |
Sysbp |
Glucose |
|
1 |
45 |
2 |
1 |
2 |
2 |
153 |
124 |
5.10 |
|
2 |
46 |
1 |
3 |
2 |
2 |
143 |
92 |
5.30 |
|
3 |
81 |
1 |
1 |
2 |
3 |
180 |
150 |
4.80 |
|
4 |
34 |
2 |
4 |
2 |
2 |
148 |
104 |
5.00 |
|
5 |
56 |
2 |
1 |
2 |
3 |
258 |
130 |
5.20 |
|
6 |
60 |
1 |
3 |
2 |
2 |
160 |
124 |
4.90 |
|
7 |
37 |
1 |
4 |
2 |
2 |
152 |
110 |
5.60 |
|
8 |
52 |
2 |
1 |
2 |
3 |
166 |
100 |
4.80 |
|
9 |
31 |
2 |
1 |
2 |
3 |
181 |
124 |
5.80 |
|
10 |
53 |
2 |
3 |
2 |
2 |
145 |
140 |
5.40 |
|
11 |
53 |
1 |
1 |
2 |
3 |
215 |
130 |
5.90 |
|
12 |
38 |
1 |
1 |
2 |
3 |
233 |
124 |
6.10 |
|
13 |
50 |
2 |
3 |
2 |
2 |
129 |
138 |
5.00 |
|
14 |
53 |
1 |
2 |
2 |
3 |
186 |
104 |
5.50 |
|
15 |
46 |
2 |
3 |
2 |
2 |
146 |
108 |
5.00 |
|
16 |
54 |
1 |
3 |
2 |
3 |
253 |
144 |
5.50 |
|
17 |
62 |
2 |
1 |
2 |
3 |
186 |
140 |
6.50 |
|
18 |
42 |
2 |
1 |
2 |
2 |
126 |
104 |
5.00 |
|
19 |
65 |
1 |
1 |
2 |
3 |
199 |
138 |
9.80 |
|
20 |
74 |
1 |
4 |
2 |
2 |
172 |
136 |
4.90 |
In Table 1.1 summarize the lifestyle data using the most appropriate measure?
Table 1.1
|
Variable |
Mean ± SD |
Median (Range) |
N (%) |
|
Age |
|
|
|
|
Gender |
|
|
|
|
Exercise |
|
|
|
|
Smoke |
|
|
|
|
Frame |
|
|
|
|
Weight |
|
|
|
|
Sysbp |
|
|
|
|
Glucose |
|
|
|
a) To Obtain Descriptive Statistics for the Quantitative Variables (Mean or Median)
Analyze-Descriptive Statistics-Frequencies -Select the quantitative variables-Click Statistics for descriptive statistics for quantitative variables and select mean, median, standard deviation, and range-Click continue then OK
b) To Obtain Histograms
· From the menus choose:
Analyze-Descriptive Statistics-Frequencies -Enter Appropriate Variables-Click Chart-Select Histograms-Check Display Normal Curve box-Continue then OK
b) To complete Table 1.1 for the qualitative variables, use frequency tables:
· From the menus choose:
Analyze-Descriptive Statistics-Frequencies ...and make sure the frequency tables item is checked
Construct a pie chart for each of the following variables:
· Gender
· Body Frame Size
a) To Obtain Pie Charts for Frequencies
· From the menus choose:
Analyze-Descriptive Statistics-FrequenciesCharts and select the specific chart typeContinue then OK
Please note: Submit completed Table 1.1 and the two pie charts