SAS Program - Lecture Notes - Computer Processing Data | STAT 479, Exams of Statistics

Material Type: Exam; Class: CMPTR PROCESSG DATA; Subject: STATISTICS; University: Iowa State University; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-r24
koofers-user-r24 🇺🇸

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Example C11
SAS Program
goptions reset=all;
goptions hsize=7.5 in vsize= 5.5 in rotate=landscape targetdevice=pscolor;
data chicks;
input wtgain @@;
label wtgain ='Weight gain (in gms) after 8-weeks';
datalines;
3.7 4.2 4.4 4.4 4.3 4.2 4.4 4.8 4.9 4.4
4.2 3.8 4.2 4.4 4.6 3.9 4.1 4.5 4.8 3.9
4.7 4.2 4.2 4.8 4.5 3.6 4.1 4.3 3.9 4.2
4.0 4.2 4.0 4.5 4.4 4.1 4.0 4.0 3.8 4.6
4.9 3.8 4.3 4.3 3.9 3.8 4.7 3.9 4.0 4.2
4.3 4.7 4.1 4.0 4.6 4.4 4.6 4.4 4.9 4.4
4.0 3.9 4.5 4.3 3.8 4.1 4.3 4.2 4.5 4.4
4.2 4.7 3.8 4.5 4.0 4.2 4.1 4.0 4.7 4.1
4.7 4.1 4.8 4.1 4.3 4.7 4.2 4.1 4.4 4.8
4.1 4.9 4.3 4.4 4.4 4.3 4.6 4.5 4.6 4.0
;
run;
proc univariate plot;
var wtgain;
histogram wtgain/midpoints = 3.6 to 4.9 by 0.1
cfill=darkcyan pfill = x4 ctext=deepskyblue
caxes=darkgray normal(color=magenta mu=4.3 sigma=0.3);
title c= firebrick 'Histogram of Chick Data using Proc Univariate';
run;
pf3
pf4
pf5

Partial preview of the text

Download SAS Program - Lecture Notes - Computer Processing Data | STAT 479 and more Exams Statistics in PDF only on Docsity!

Example^

C

SAS Program goptions^

reset=all;

goptions^

hsize= 7.

in^ vsize=

5.5^ in^ rotate=landscape

targetdevice=pscolor;

data^ chicks;input^ wtgain @@;label^ wtgain ='Weight gain (in gms) after 8-weeks';datalines;3.7^ 4.^

4.4^ 4.^

4.3^ 4.^

4.4^ 4.^

4.9^ 4.

4.2^ 3.^

4.2^ 4.^

4.6^ 3.^

4.1^ 4.^

4.8^ 3.

4.7^ 4.^

4.2^ 4.^

4.5^ 3.^

4.1^ 4.^

3.9^ 4.

4.0^ 4.^

4.0^ 4.^

4.4^ 4.^

4.0^ 4.^

3.8^ 4.

4.9^ 3.^

4.3^ 4.^

3.9^ 3.^

4.7^ 3.^

4.0^ 4.

4.3^ 4.^

4.1^ 4.^

4.6^ 4.^

4.6^ 4.^

4.9^ 4.

4.0^ 3.^

4.5^ 4.^

3.8^ 4.^

4.3^ 4.^

4.5^ 4.

4.2^ 4.^

3.8^ 4.^

4.0^ 4.^

4.1^ 4.^

4.7^ 4.

4.7^ 4.^

4.8^ 4.^

4.3^ 4.^

4.2^ 4.^

4.4^ 4.

4.1^ 4.^

4.3^ 4.^

4.4^ 4.^

4.6^ 4.^

4.6^ 4.

; run ; proc^ univariate

plot;

var^ wtgain;histogram

wtgain/midpoints

=^ 3.6^ to

4.9^ by^ 0.

cfill=darkcyan

pfill^ = x

ctext=deepskyblue

caxes=darkgray

normal(color=magenta

mu= 4.3^ sigma=

title^ c= firebrick

'Histogram of Chick Data using Proc Univariate';

run ;

SAS^ Log 5 6 data

chicks;

7 input

wtgain^ @@;

8 label

wtgain^ ='Weight

gain^ (in

gms)^ after

8-weeks';

9 datalines;NOTE:^ SAS

went^ to^

a^ new^ line when

INPUT^ statement reached past the

end of a

line.

NOTE:^ The

data^ set

WORK.CHICKS

has^100

observations

and^1 variables.

NOTE:^ DATA

statement

used (Total process

time):

real^ time

0.23 seconds

cpu^ time^

0.00 seconds

20 ; 21 run; 2223 proc

univariate

plot;

24 var

wtgain;

25 histogram

wtgain/midpoints

= 3.6 to 4.

by 0.

cfill=darkcyan

pfill^ =^

x4 ctext=deepskyblue

caxes=darkgray

normal(color=magenta

mu=4.3 sigma=0.3);

28 title

c=^ firebrick

'Histogram of

Chick^ Data

using^ Proc

Univariate';

29 run;

Histogram of Chick Data

using Proc

Univariate

The^ UNIVARIATE Procedure Variable:^

wtgain^ (Weight

gain^ (in^ gms) after 8-weeks) Quantiles^ (Definition 5)Quantile Estimate100% Max 4.9099% 4.9095% 4.8090% 4.7075% Q3 4.5050% Median^ 4.3025% Q1 4.1010% 3.905% 3.801% 3.650% Min 3.60 Extreme Observations ----Lowest----

----Highest--- Value^

Obs^

Value^

Obs

3.^

4.^

3.^

4.^

3.^

4.^

3.^

4.^

3.^

4.^

Histogram of Chick Data

using Proc

Univariate

The^ UNIVARIATE Procedure Variable:^

wtgain^ (Weight

gain^ (in^ gms) after 8-weeks)

Stem^ Leaf^

#^

Boxplot^

Normal Probability

Plot

|^

*++^ *^48

|^

****++^47

|^

|^

|^

|^

+-----+^

|^

|^ |^

|^

-----^

|^

|^ +^ |^

|^

+-----+^

|^

|^

|^

|^

|^

|^

|^ ******+

|^

|^ *^ ++++

|^

3.65+*^ +++

-+----+Multiply Stem.Leaf by 10**-

-^

-^

3. 6^ 3. 7^

3. 8^ 3. 9^

4 4. 1^

4. 2^ 4. 3^

4. 4^ 4. 5^

4. 6^ 4. 7^

4. 8^ 4. 9

1 4 1 2 1 0 P^8 ercen^6 t^420

W e i g h t^ g a i n

( i n^ g m s )

a f t e r^ 8 - w e e k s