You are on page 1of 15

Class Level Information

Class Levels Values


growthgroup
2 high low
continent
4 africa america asia europe
Problem:4.1 -

Number of Observations Read
187
Number of Observations Used
187


Source DF
Sum of
Squares Mean Square F Value Pr > F
Model
7 459.521554 65.645936 14.69 <.0001
Error
179 800.076265 4.469700
Corrected Total
186 1259.597819









R-Square Coeff Var Root MSE bmi Mean
0.364816 8.414872 2.114166 25.12417
Source DF Type I SS Mean Square F Value Pr > F
growthgroup
1 231.1455104 231.1455104 51.71 <.0001
continent
3 203.0376351 67.6792117 15.14 <.0001
growthgrou*continent
3 25.3384087 8.4461362 1.89 0.1330
Source DF Type III SS Mean Square F Value Pr > F
growthgroup
1 33.1124419 33.1124419 7.41 0.0071
continent
3 107.6019596 35.8673199 8.02 <.0001
growthgrou*continent
3 25.3384087 8.4461362 1.89 0.1330


We use the univariate procedure to check the normality assumptions and find that it follows a normality assumption.

Moments
N
187
Sum Weights
187
Mean
0
Sum Observations
0
Std Deviation
2.07400224
Variance
4.3014853
Skewness
0.21076655
Kurtosis
1.10802117
Uncorrected SS
800.076265
Corrected SS
800.076265
Coeff Variation
.
Std Error Mean
0.15166606
Basic Statistical Measures
Location Variability
Mean
0.000000
Std Deviation
2.07400
Median
0.018308
Variance
4.30149
Mode
.
Range
12.04058


Interquartile Range
2.01306


























Tests for Location: Mu0=0
Test Statistic p Value
Student's t t
0
Pr > |t|
1.0000
Sign M
2.5
Pr >= |M|
0.7700
Signed Rank S
6
Pr >= |S|
0.9936
Stem Leaf # Boxplot
7 3 1 *
6
6 1 1 0
5 9 1 0
5
4
4 022344 6 0
3 88 2 |
3 112 3 |
2 5899 4 |
2 000122 6 |
1 5556678888999 13 |
1 00000122223 11 +-----+
0 555555667778999999 18 | |
0 000000111111111122333333333444 30 *--+--*
-0 44443332222222222111111100 26 | |
-0 9988777666666555 16 | |
-1 443221111100000 15 +-----+
-1 9887655 7 |
-2 3210 4 |
-2 98766 5 |
-3 4310 4 |
-3 9765 4 |
-4 332100 6 0
-4 8765 4 0
----+----+----+----+----+----+


Quantiles (Definition 5)
Quantile Estimate
100% Max
7.2789400
99%
6.0570000
95%
3.8073500
90%
2.2239288
75% Q3
0.9851312
50% Median
0.0183078
25% Q1
-1.0279322
10%
-2.9052617
5%
-3.9763912
1%
-4.6506900
0% Min
-4.7616400
Extreme Observations
Lowest Highest
Value Obs Value Obs
-4.76164 77 4.37823 169
-4.65069 157 4.43742 106
-4.60014 88 5.93157 61
-4.53853 14 6.05700 41
-4.34513 167 7.27894 118


Normal Probability Plot
7.25+ *
|
| *
| *
| +
| +++
| *****
| *+++
| *+
| **
| ++**
| +****
1.25+ ++***
| +****
| *****
| *****
| ***+
| ****+
| ***+
| +*+
| +**
| +***
| +++**
| +****
-4.75+**+**
+----+----+----+----+----+----+----+----+----+----+
-2 -1 0 +1 +2








Parameters for Normal
Distribution
Parameter Symbol Estimate
Mean
Mu 0
Std Dev
Sigma 2.074002






























Problem 4.2 We carry out the same procedure by taking the log transformation of bmi and get the results-

Goodness-of-Fit Tests for Normal Distribution
Test Statistic p Value
Kolmogorov-Smirnov D
0.08541628
Pr > D
<0.010
Cramer-von Mises W-Sq
0.46421204
Pr > W-Sq
<0.005
Anderson-Darling A-Sq
2.48065436
Pr > A-Sq
<0.005
Quantiles for Normal
Distribution
Percent
Quantile
Observed Estimated
1.0
-4.65069 -4.824851
5.0
-3.97639 -3.411430
10.0
-2.90526 -2.657941
25.0
-1.02793 -1.398893
50.0
0.01831 -0.000000
75.0
0.98513 1.398893
90.0
2.22393 2.657941
95.0
3.80735 3.411430
99.0
6.05700 4.824851
Class Level Information
Class Levels Values
growthgroup
2 high low
continent
4 africa america asia europe
Number of Observations Read
187
Number of Observations Used
187
Source DF
Sum of
Squares Mean Square F Value Pr > F
Model
7 0.76112365 0.10873195 15.47 <.0001
Error
179 1.25791711 0.00702747
Corrected Total
186 2.01904076






R-Square Coeff Var Root MSE logbmi Mean
0.376973 2.604662 0.083830 3.218460
Source DF Type I SS Mean Square F Value Pr > F
growthgroup
1 0.38328347 0.38328347 54.54 <.0001
continent
3 0.33768127 0.11256042 16.02 <.0001
growthgrou*continent
3 0.04015891 0.01338630 1.90 0.1305
Source DF Type III SS Mean Square F Value Pr > F
growthgroup
1 0.05349616 0.05349616 7.61 0.0064
continent
3 0.17649046 0.05883015 8.37 <.0001
growthgrou*continent
3 0.04015891 0.01338630 1.90 0.1305
Class Level Information
Class Levels Values
growthgroup
2 high low
continent
4 africa america asia europe
Number of Observations Read
187
Number of Observations Used
187
Source DF
Sum of
Squares Mean Square F Value Pr > F
Model
7 0.76112365 0.10873195 15.47 <.0001
Error
179 1.25791711 0.00702747
Corrected Total
186 2.01904076
R-Square Coeff Var Root MSE logbmi Mean
0.376973 2.604662 0.083830 3.218460
Source DF Type I SS Mean Square F Value Pr > F
growthgroup
1 0.38328347 0.38328347 54.54 <.0001
continent
3 0.33768127 0.11256042 16.02 <.0001

























growthgrou*continent
3 0.04015891 0.01338630 1.90 0.1305
Source DF Type III SS Mean Square F Value Pr > F
growthgroup
1 0.05349616 0.05349616 7.61 0.0064
continent
3 0.17649046 0.05883015 8.37 <.0001
growthgrou*continent
3 0.04015891 0.01338630 1.90 0.1305
Moments
N
187
Sum Weights
187
Mean
0
Sum Observations
0
Std Deviation
0.08223743
Variance
0.006763
Skewness
-0.01494
Kurtosis
0.70665066
Uncorrected SS
1.25791711
Corrected SS
1.25791711
Coeff Variation
.
Std Error Mean
0.0060138















Basic Statistical Measures
Location Variability
Mean
0.000000
Std Deviation
0.08224
Median
0.002097
Variance
0.00676
Mode
.
Range
0.44534


Interquartile Range
0.07901
Tests for Location: Mu0=0
Test Statistic p Value
Student's t t
0
Pr > |t|
1.0000
Sign M
5.5
Pr >= |M|
0.4647
Signed Rank S
237
Pr >= |S|
0.7501
Quantiles (Definition 5)
Quantile Estimate
100% Max
0.25144196
99%
0.22040218
95%
0.14339134
90%
0.09243857
75% Q3
0.03976053
50% Median
0.00209743
25% Q1
-0.03924643
10%
-0.11917989
5%
-0.16670745
1%
-0.18740058
0% Min
-0.19389389
Extreme Observations
Lowest Highest
Value Obs Value Obs
-0.193894 14 0.170786 106
-0.187401 77 0.173065 52
-0.184457 167 0.214727 41
-0.183013 1 0.220402 61
-0.182337 157 0.251442 118











Stem Leaf # Boxplot
24 1 1 0
22 0 1 0
20 5 1 0
18
16 246613 6 0
14 23 2 |
12 581 3 |
10 4579 4 |
8 4012 4 |
6 14789990166789 14 |
4 01555662458 11 +-----+
2 02246890133346689 17 | |
0 11122233445556677700122233346689999 35 *--+--*
-0 666320099666655543332110 24 | |
-2 998411887765543210 18 +-----+
-4 8532975521000 13 |
-6 743294 6 |
-8 732 3 |
-10 955510 6 |
-12 7664 4 |
-14 420 3 |
-16 64971 5 0
-18 474320 6 0
----+----+----+----+----+----+----+
Multiply Stem.Leaf by 10**-2


Normal Probability Plot
0.25+ *
| *
| * +
| +++
| *****
| * ++
| *++
| **
| ++**
| +****
| ++***
0.03+ +****
| ******
| ****
| ****+
| ***++
| **+
| +*+
| +***
| ++***
| ++ *
| ++ ***
-0.19+**+****
+----+----+----+----+----+----+----+----+----+----+
-2 -1 0 +1 +2















Parameters for Normal
Distribution
Parameter Symbol Estimate
Mean
Mu 0
Std Dev
Sigma 0.082237
Goodness-of-Fit Tests for Normal Distribution
Test Statistic p Value
Kolmogorov-Smirnov D
0.08645919
Pr > D
<0.010
Cramer-von Mises W-Sq
0.44472321
Pr > W-Sq
<0.005
Anderson-Darling A-Sq
2.39426952
Pr > A-Sq
<0.005

























Quantiles for Normal
Distribution
Percent
Quantile
Observed Estimated
1.0
-0.18740 -0.191313
5.0
-0.16671 -0.135269
10.0
-0.11918 -0.105392
25.0
-0.03925 -0.055468
50.0
0.00210 -0.000000
75.0
0.03976 0.055468
90.0
0.09244 0.105392
95.0
0.14339 0.135269
99.0
0.22040 0.191313





Problem 4.3







Problem 4.4





Problem 4.5






===========================================================================================


Code-

libname amruta "C:\Users\amrmad\Downloads";
/*Problem 4.1*/
proc import datafile ="C:\Users\amrmad\Downloads\amruta\hw3.4.xlsx" out=amruta.bmi;
sheet ='Both';
run;

proc glm data=amruta.bmi;
class growthgroup continent;
model bmi = growthgroup|continent;
output out= amruta.newbmi
residual = resid
run;

proc univariate plot data=amruta.newbmi;
var resid ;
histogram/normal;
run;
/*Problem 4.2*/

data amruta.transform (drop=bmi);
set amruta.bmi;
logbmi =log(bmi);
run;
proc glm data=amruta.transform;
class growthgroup continent;
model logbmi = growthgroup|continent;
output out= amruta.after
residual = resid2


run;
proc univariate plot data= amruta.after;
var resid2 ;
histogram/normal;
run;
/* problem 4.3*/
proc sgplot data=amruta.newbmi;
histogram resid;
run;
proc sgplot data=amruta.after;
histogram resid2;
run;

/*Problem 4.4 */
proc sgplot data= amruta.bmi;
vbar continent/response=bmi group= growthgroup
groupdisplay= cluster stat = mean;
run;

/*Problem 4.5*/

data combine;
set amruta.bmi;
combinedgrp= continent||growthgroup;
run;

proc sgplot data= combine;
Vbox bmi/ category= combinedgrp;
run;



============================ END =====================================================

You might also like