Docsity

Regression Analysis of Hald Data using SAS - Prof. Mervyn G. Marasinghe, Study notes of Statistics

Toggle sidebar
bg1
EXAMPLE D5
SAS Program
data old;
input x1-x4 y;
datalines;
7 26 6 60 78.5
1 29 15 52 74.3
11 56 8 20 104.3
11 31 8 47 87.6
7 52 6 33 95.9
11 55 9 22 109.2
3 71 17 6 102.7
1 31 22 44 72.5
2 54 18 22 93.1
21 47 4 26 115.9
1 40 23 34 83.8
11 66 9 12 113.3
10 68 8 12 109.4
;
run;
proc reg simple corr;
model y = x1 x2 x3 x4/clb xpx i;
model y = x1 x2 x3 x4/r influence;
title 'Regression Analysis of Hald Data';
run;
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Regression Analysis of Hald Data using SAS - Prof. Mervyn G. Marasinghe and more Study notes Statistics in PDF only on Docsity!

EXAMPLE D5SAS Program data^ old;input^ x1-x4 y;datalines;7 26^ 6 60^ 78.51 29 15 52^ 74.311 56^ 8 20 104.311 31^ 8 47^ 87.67 52^ 6 33^ 95.911 55^ 9 22 109.23 71 17^ 6 102.71 31 22 44^ 72.52 54 18 22^ 93.121 47^ 4 26 115.91 40 23 34^ 83.811 66^ 9 12 113.310 68^ 8 12 109.4; run ; proc^ reg^ simple^ corr;model^ y = x1 x2 x3 x4/clb^ xpx^

i;model y = x1 x2 x3 x4/r influence;title 'Regression Analysis of Hald Data'; run ;

SAS Log 2 data^ old; 3 input^ x1-x4^ y; 4 datalines;NOTE:^ The^ data^ set^ WORK.OLD^ has 13 observations^ and^5 variables. NOTE:^ DATA^ statement^ used (Total process

time): real^ time^ 0.01 secondscpu^ time^ 0.01 seconds 18 ; 19 run; 2021 proc^ reg^ simple^ corr; 22 model^ y^ =^ x1^ x2 x3 x4/clb xpx i; 23 model^ y^ =^ x1^ x2^ x3 x4/r influence; 24 title^ 'Regression^ Analysis of Hald Data'; 25 run;

Regression^ Analysis^ of^ Hald^ Data

(^2) The REG ProcedureModel: MODEL Model^ Crossproducts^ X'X^ X'Y^ Y'Y Variable Intercept^ x^

x Intercept^13

x1^97

x2^626

x3^153

x4^390

y^ 1240.^

10032 62027.8Model Crossproducts X'X X'Y^ Y'Y Variable^ x^

x4^ y Intercept^153

x1^769

x2^7201

x3^2293

x4^4628

y^ 13981.^

34733.3^ 121088.

Regression^ Analysis^ of^ Hald^ Data

(^3) The REG ProcedureModel: MODEL1Dependent Variable: y Number^ of^ Observations^ Read^

Number^ of^ Observations^ Used^

X'X^ Inverse,^ Parameter Estimates, and SSEVariable Intercept^

x1^ x Intercept^ 820.^

-8.441801862^ -8.

x1^ -8.^

0.0927104019^ 0.

x2^ -8.^

0.0856862094^ 0.

x3^ -8.^

0.0926373566^ 0.

x4^ -8.^

0.0844549553^ 0.

y^ 62.^

1.5511026475^ 0.5101675797X'X Inverse, Parameter Estimates, and SSE Variable^ x^

x4^ y Intercept^ -8.^

-8.289743778^ 62.

x1^ 0.^

0.0844549553^ 1.

x2^ 0.^

0.0855980995^ 0.

x3^ 0.^

0.0863919188^ 0.

x4^ 0.^

0.0840311912^ -0.

y^ 0.^

-0.144061029^ 47.

Regression^ Analysis^ of^ Hald^ Data

(^4) The REG ProcedureModel: MODEL1Dependent Variable: yParameter EstimatesParameter Standard Variable^ DF^ Estimate^

Error^ t^ Value^ Pr^ >^ |t| Intercept^1 62.^

70.07096^ 0.89^ 0.

x1^1 1.^

0.74477^ 2.08^ 0.

x2^1 0.^

0.72379^ 0.70^ 0.

x3^1 0.^

0.75471^ 0.14^ 0.

x4^1 -0.^

0.70905^ -0.20^ 0.8441Parameter EstimatesVariable DF 95% Confidence^ LimitsIntercept 1 -99.17855^ 223.98929x1 1 -0.16634^ 3.26855x2 1 -1.15889^ 2.17923x3 1 -1.63845^ 1.84227x4 1 -1.77914^ 1.

Regression^ Analysis^ of^ Hald^ Data

(^6) The REG ProcedureModel: MODEL2Dependent Variable: y Output Statistics Dependent^ Predicted^ Std^ Error

Std^ Error^ Student Obs^ Variable^ Value^ Mean^

Predict^ Residual^ Residual^