Docsity

SAS Program for Analyzing Car MPG Data and Calculating Confidence Intervals - Prof. Mervyn, Study notes of Statistics

Toggle sidebar
bg1
Example F7
SAS Program
data auto;
input driver 1. @;
do car=1 to 5;
input mpg @;
output;
end;
datalines;
1 25.3 28.9 24.8 28.4 27.1
1 25.2 30.0 25.1 27.9 26.6
2 33.6 36.7 31.7 35.6 33.7
2 32.9 36.5 31.9 35.0 33.9
3 27.7 30.7 26.9 29.7 29.2
3 28.5 30.4 26.3 30.2 28.9
4 29.2 32.4 27.7 31.8 30.3
4 29.3 32.4 28.9 30.7 29.9
;
run;
proc mixed data=auto noinfo noitprint covtest cl ;
class driver car;
model mpg = /solution;
random driver car driver*car;
run;
pf3

Partial preview of the text

Download SAS Program for Analyzing Car MPG Data and Calculating Confidence Intervals - Prof. Mervyn and more Study notes Statistics in PDF only on Docsity!

Example F7SAS Program data

auto;

input

driver

do^

car=

1 to

^5 ;

input

mpg @;

output;

end;

datalines; 1

; run

proc

mixed

data=auto

noinfo

noitprint

covtest

cl ;

class

driver car;

model

mpg = /solution;

random

driver car driver*car;

run

SAS Output

The^

SAS^

System

The^

Mixed Procedure Class

Level Information

Class

Levels

Values

driver

car^

Covariance

Parameter

Estimates

Standard

Z

Cov^

Parm

Estimate

Error

Value

Pr Z

Alpha

Lower

Upper

driver

car^

driver*car

3.592E

Residual

Fit Statistics

-2^ Res

Log

Likelihood

AIC^

(smaller

is^

better)

AICC (smaller

is^

better)

BIC^

(smaller

is^

better)

Solution for Fixed Effects

Standard

Effect

Estimate

Error

DF^

t^ Value

Pr^ > |t|

Intercept