Sunteți pe pagina 1din 14

options ls=76 ps=56;

data transformadas;
input niveldenitro rend;
z=log(rend);
cards;
0
1.02
0
0.82
0
1
0
0.85
40
1.62
40
2.02
40
1.87
40
1.42
40
1.66
80
2.16
80
1.98
80
2.34
120
2.13
120
2.34
120
2.04
120
2.26
120
2.15
;
proc univariate normal plot ;
var z;
run;
Pr < W

0.0041 no es DN no es mayor q 0.05

Con exp el valor que se obtiene es


The SAS System

1
18:00 Sunday, August 24, 2008
The UNIVARIATE Procedure
Variable: z
Moments

N
Mean
Std Deviation
Skewness
Uncorrected SS
Coeff Variation

17
6.44279668
2.82794319
-0.2314896
833.619897
43.8931001

Sum Weights
Sum Observations
Variance
Kurtosis
Corrected SS
Std Error Mean

17
109.527544
7.99726271
-1.3250256
127.956203
0.68587697

Basic Statistical Measures


Location
Mean
Median
Mode

Variability

6.44280
7.24274
10.38124

Std Deviation
Variance
Range
Interquartile Range

2.82794
7.99726
8.11074
4.44774

Tests for Location: Mu0=0


Test

-Statistic-

-----p Value------

Student's t
Sign

t
M

Pr > |t|
Pr >= |M|

9.393517
8.5

<.0001
<.0001

Signed Rank

76.5

Pr >= |S|

<.0001

Tests for Normality


Test

--Statistic---

-----p Value------

Shapiro-Wilk
Kolmogorov-Smirnov
Cramer-von Mises
Anderson-Darling

W
D
W-Sq
A-Sq

Pr
Pr
Pr
Pr

0.918579
0.140774
0.065931
0.456202

<
>
>
>

W
D
W-Sq
A-Sq

0.1397
>0.1500
>0.2500
0.2391

Quantiles (Definition 5)
Quantile

Estimate

100% Max
99%
95%
90%
75% Q3
50% Median
25% Q1

10.38124
10.38124
10.38124
10.38124
8.58486
7.24274
4.13712
2
18:00 Sunday, August 24, 2008

The SAS System

The UNIVARIATE Procedure


Variable: z
Quantiles (Definition 5)
Quantile
10%
5%
1%
0% Min

Estimate
2.33965
2.27050
2.27050
2.27050

Extreme Observations
------Lowest-----

------Highest-----

Value

Obs

Value

Obs

2.27050
2.33965
2.71828
2.77319
4.13712

2
4
3
1
8

8.58486
8.67114
9.58309
10.38124
10.38124

17
10
16
12
14

Stem
10
9
8
7
6
5
4
3
2

Leaf
44
6
467
257
5
13
1

#
2
1
3
3
1
2
1

3378
----+----+----+----+

Boxplot
|
|
+-----+
*-----*
| + |
|
|
+-----+
|
|

Normal Probability Plot


10.5+
|

*+++ *
*++

|
|
6.5+
|
|
|
2.5+

**+*+
**+*++
*++
*+*+
++*
++++
* ++* * *
+----+----+----+----+----+----+----+----+----+----+
-2
-1
0
+1
+2

options ls=76 ps=56;


data transformadas;
input niveldenitro rend;
z=exp(rend);
cards;
0
1.02
0
0.82
0
1
0
0.85
40
1.62
40
2.02
40
1.87
40
1.42
40
1.66
80
2.16
80
1.98
80
2.34
120
2.13
120
2.34
120
2.04
120
2.26
120
2.15
;
proc univariate normal plot ;
var z;
run;
proc glm data=transformadas;
class niveldenitro;
model z=niveldenitro/ss3;
lsmeans niveldenitro/out=medias;
contrast 'niveldenitro-lin' niveldenitro -3 -1 1 3;
contrast 'niveldenitro-cuadra' niveldenitro 1 -1 -1 1;
means niveldenitro/hovtest=bartlett;
run;
proc glm data=medias;
model lsmean=niveldenitro niveldenitro*niveldenitro/ss3;
run;

The SAS System

1
18:11 Sunday, August 24, 2008
The UNIVARIATE Procedure
Variable: z
Moments

N
Mean
Std Deviation
Skewness
Uncorrected SS
Coeff Variation

17
6.44279668
2.82794319
-0.2314896
833.619897
43.8931001

Sum Weights
Sum Observations
Variance
Kurtosis
Corrected SS
Std Error Mean

17
109.527544
7.99726271
-1.3250256
127.956203
0.68587697

Basic Statistical Measures


Location
Mean
Median
Mode

Variability

6.44280
7.24274
10.38124

Std Deviation
Variance
Range
Interquartile Range

2.82794
7.99726
8.11074
4.44774

Tests for Location: Mu0=0


Test

-Statistic-

-----p Value------

Student's t
Sign
Signed Rank

t
M
S

Pr > |t|
Pr >= |M|
Pr >= |S|

9.393517
8.5
76.5

<.0001
<.0001
<.0001

Tests for Normality


Test

--Statistic---

-----p Value------

Shapiro-Wilk
Kolmogorov-Smirnov
Cramer-von Mises
Anderson-Darling

W
D
W-Sq
A-Sq

Pr
Pr
Pr
Pr

0.918579
0.140774
0.065931
0.456202

Quantiles (Definition 5)

<
>
>
>

W
D
W-Sq
A-Sq

0.1397
>0.1500
>0.2500
0.2391

Quantile

Estimate

100% Max
99%
95%
90%
75% Q3
50% Median
25% Q1

10.38124
10.38124
10.38124
10.38124
8.58486
7.24274
4.13712

The SAS System

2
18:11 Sunday, August 24, 2008

The UNIVARIATE Procedure


Variable: z
Quantiles (Definition 5)
Quantile
10%
5%
1%
0% Min

Estimate
2.33965
2.27050
2.27050
2.27050

Extreme Observations
------Lowest-----

------Highest-----

Value

Obs

Value

Obs

2.27050
2.33965
2.71828
2.77319
4.13712

2
4
3
1
8

8.58486
8.67114
9.58309
10.38124
10.38124

17
10
16
12
14

Stem
10
9
8
7
6
5
4
3
2

Leaf
44
6
467
257
5
13
1

#
2
1
3
3
1
2
1

3378
----+----+----+----+

Boxplot
|
|
+-----+
*-----*
| + |
|
|
+-----+
|
|

Normal Probability Plot


10.5+
|
|
|
6.5+
|
|
|
2.5+

*+++ *
*++
**+*+
**+*++
*++
*+*+
++*
++++
* ++* * *
+----+----+----+----+----+----+----+----+----+----+
-2
-1
0
+1
+2

The SAS System

3
18:11 Sunday, August 24, 2008

The GLM Procedure


Class Level Information
Class
niveldenitro

Levels
4

Number of Observations Read


Number of Observations Used

Values
0 40 80 120
17
17

The SAS System

4
18:11 Sunday, August 24, 2008

The GLM Procedure


Dependent Variable: z
Source

DF

Sum of
Squares

Mean Square

F Value

Pr > F

Model

111.3106115

37.1035372

28.98

<.0001

Error

13

16.6455918

1.2804301

Corrected Total

16

127.9562034

R-Square

Coeff Var

Root MSE

z Mean

0.869912

17.56319

1.131561

6.442797

Source
niveldenitro

DF

Type III SS

Mean Square

F Value

Pr > F

111.3106115

37.1035372

28.98

<.0001

The SAS System

5
18:11 Sunday, August 24, 2008

The GLM Procedure


Least Squares Means
niveldenitro
0
40
80
120

z LSMEAN
2.52540582
5.69522859
8.76503907
8.93093203

The SAS System

6
18:11 Sunday, August 24, 2008

The GLM Procedure


Bartlett's Test for Homogeneity of z Variance
Source
niveldenitro

DF

Chi-Square

Pr > ChiSq

6.0189

0.1107

The SAS System

7
18:11 Sunday, August 24, 2008

The GLM Procedure


Level of
niveldenitro

0
40
80
120

4
5
3
5

--------------z-------------Mean
Std Dev
2.52540582
5.69522859
8.76503907
8.93093203

0.25695912
1.32815921
1.57135247
1.05512833

The SAS System

8
18:11 Sunday, August 24, 2008

The GLM Procedure


Dependent Variable: z
Contrast
niveldenitro-lin
niveldenitro-cuadra

DF

Contrast SS

Mean Square

F Value

Pr > F

1
1

108.3672304
9.1765366

108.3672304
9.1765366

84.63
7.17

<.0001
0.0190

The SAS System

9
18:11 Sunday, August 24, 2008

The GLM Procedure


Number of Observations Read
Number of Observations Used

4
4

The SAS System

10
18:11 Sunday, August 24, 2008

The GLM Procedure


Dependent Variable: LSMEAN
Source

DF

Sum of
Squares

Mean Square

F Value

Pr > F

Model

27.09005553

13.54502777

34.46

0.1196

Error

0.39309423

0.39309423

Corrected Total

27.48314976

R-Square

Coeff Var

Root MSE

LSMEAN Mean

0.985697

9.676765

0.626972

6.479151

Source
niveldenitro
niveldeni*niveldenit

Parameter
Intercept
niveldenitro
niveldeni*niveldenit

DF

Type III SS

Mean Square

F Value

Pr > F

1
1

8.19780223
2.25589857

8.19780223
2.25589857

20.85
5.74

0.1372
0.2517

Estimate

Standard
Error

t Value

Pr > |t|

2.385210559
0.112039657
-0.000469364

0.61109698
0.02453417
0.00019593

3.90
4.57
-2.40

0.1597
0.1372
0.2517

S-ar putea să vă placă și