Docsity

Example B10: SAS Program, SAS Log, SAS Output | STAT 479, Study notes of Statistics

Toggle sidebar
bg1
Example B10
SAS PROGRAM
options ls=80 ps=40 nodate pageno=1;
options formchar="|----|+|---+=|-/\<>*";
libname mylib 'C:\Documents and Settings\mervyn\My Documents\Classwork\stat479\';
proc plot data=mylib.fueldat;
plot fuel*roads;
plot fuel*roads='+';
plot fuel*roads='*' $ st;
plot fuel*roads='*' $ st/
haxis=0 to 20 by 2
placement=((s=right left:h=1 -1)(v=1 -1*h=1 -1));
title 'Output from Sample Plot Statements';
run;
pf3
pf4
pf5

Partial preview of the text

Download Example B10: SAS Program, SAS Log, SAS Output | STAT 479 and more Study notes Statistics in PDF only on Docsity!

Example

B

SAS

PROGRAM

options

ls=

ps=

nodate pageno=

options

formchar="|----|+|---+=|-/<>*";

libname

mylib

'C:\Documents and Settings\mervyn\My Documents\Classwork\stat479';

proc

plot

data=mylib.fueldat;

plot

fuel*roads;

plot

fuel*roads='+';

plot

fuelroads=''

$ st;

plot

fuelroads=''

$ st/

haxis=

to

^20

by

^2

placement=((s=right left:h=

-^1

)(v=

-^1

*h=

-^1

title

'Output from Sample Plot Statements';

run

SAS

Log

options

formchar="|----|+|---+=|-/<>*";

libname

mylib

'C:\Documents and Settings\mervyn\My

Documents\Classwork\stat479';

NOTE:

Libref

MYLIB

was

successfully assigned

as

follows:

Engine:

V

Physical

Name:

C:\Documents

and

Settings\mervyn\My Documents\Classwork\stat

proc

plot

data=mylib.fueldat;

plot

fuel*roads;

plot

fuel*roads='+';

plot

fuelroads=''

st;

plot

fuelroads=''

st/

haxis=

to

by

placement=((s=right

left:h=

-1)(v=

-1*h=

title

'Output

from

Sample Plot

Statements';

run;

Output from

Sample

Plot

Statements

Plot

of

fuel*roads.

Symbol

used is '+'.

fuel

| | | |^

| |^

+^

|^

|^

+^

|^

+^

+^

+^

+^

+^

+^

|^

+^

+^

+^

|^

+^

+^

+^

|^

+^

+^

|^

+^

|^

+^

+^

+^

| |^

Miles of Primary

Highways(in thsnds.)

NOTE: 3

obs

hidden.

Output

from Sample

Plot Statements

Plot

of

fuel*roads$st.

Symbol

used

is '*'.

fuel

*^

WY

| | | |^

*^

SD

*^

NV

| |^

*^

ND

*^

MT

|^

*^

NM

|^

*^

ID

AR

OK

KS

|^

AZ

*OR

CO

NE

GA *

*^

IA

*^

TX

*^

UT

*^

*^

SC

FL

TN

* MO

|^

*^

VT

NC

I

*^

MN

|^

*^

DE

ME

KY

VA

MS*

AL

|^

*^

NH

*^

WA

WI

MI

*^

CA

|^

NJ

WV

*^

LA

* OH

|^

CT *

MD

* PA

*^

IL

*^

RI

*^

MA

| |^

*^

NY

Miles

of

Primary

Highways(in thsnds.)