SAS FUNCTION
SAS 9.1.3
Go to Documentation Home
HOME
Go to Book List
FUN_home
Go to Table of Contents
연구회
Go to Index
자료실
Go to Master Index
SAS  9.1.3
Go to Feedback page
MAIL
Data 리스트

처음메뉴로

1. SASUSER.INCOME 데이터 생성

proc format;
     value $ gender 'F'='Female' 'M'='Male';
run;

data SASUSER.income(label='Annual Income');
     input name &$20. street &$20. income +1 gender $1.;
     format income dollar11.2 gender gender.;
     label name = 'Last Name, First Name'
     street = 'Address'
     income = 'Annual Income'
     gender = 'Gender';
cards;
Leverling, Janet 55 Hazel Way 54789 F
Peacock, Margaret 101 Broadway 4565 F
Smith, John 23 Mars Hill Dr. 86685 M
Buchanan, Steven 45 Gray Drive 23567 M
Suyama, Michael 213 Hillside Ave. 65778 M
King, Robert 345 Main St. 45654 M
Callahan, Laura 455 8th St. 134656 F
Dodsworth, Anne 57 Pleasant Blvd. 5433 F
Davolio, Nancy 65 Peanut Circle 57654 F
;


2. SASUSER.HOUSES 데이터 생성

data sasuser.houses;
     input style $ 1-9 sqfeet 10-14 bedrooms baths street $ 31-47 price $ 53-72;
cards;
RANCH 1250 2 1.0 Sheppard Avenue $64,000
SPLIT 1190 1 1.0 Rand Street $65,850
CONDO 1400 2 1.5 Market Street $80,050
TWOSTORY 1810 4 3.0 Garris Street $107,250
RANCH 1500 3 3.0 Kemble Avenue $86,650
SPLIT 1615 4 3.0 West Drive $94,450
SPLIT 1305 3 1.5 Graham Avenue $73,650
CONDO 1390 3 2.5 Hampshire Avenue $79,350
TWOSTORY 1040 2 1.0 Sanders Road $55,850
CONDO 2105 4 2.5 Jeans Avenue $127,150
RANCH 1535 3 3.0 State Highway $89,100
TWOSTORY 1240 2 1.0 Fairbanks Circle $69,250
RANCH 720 1 1.0 Nicholson Drive $34,550
TWOSTORY 1745 4 2.5 Highland Road $102,950
CONDO 1860 2 2.0 Arcata Avenue $110,700
;
run;
 

3. SASUSER.NAME 데이터 생성

data sasuser.name;
     informat FirstName LastName $15. n1 6.2 n2 7.3;
     input firstname lastname n1 n2;
datalines;
Alexander Robinson 35 11
;


4. SASUSER.TEST 데이터 생성

DATA sasuser.TEST(LABEL="This is the data set label");
     LENGTH X3 4;
     INPUT @1 SUBJ $CHAR3.
           @4 DOB MMDDYY10.
           @14 (X1-X3) (1.)
           @17 F_NAME $CHAR10.
           @27 L_NAME $CHAR15.;
     LABEL SUBJ = 'Subject'
           DOB  = 'Date of Birth'
           X1   = 'The first X'
           X2   = 'Second X'
           X3   = 'Third X'
           F_NAME = 'First Name'
           L_NAME = 'Last Name';
     FORMAT DOB MMDDYY10. X3 ROMAN.;
DATALINES;
00110/21/1946123George Hincappie
00211/05/1956987Pincus Zukerman
00701/01/19903..Jose Juarez
;


5. SASUSER.CLASS 데이터 생성

data sasuser.class;
     input Name $ Sex $ Age Height Weight;
cards;
Alfred M 14 69.0 112.5
Alice F 13 56.5 84.0
Barbara F 13 65.3 98.0
Carol F 14 62.8 102.5
;
run;


6. SASUSER.SURVEY 데이터 생성

data sasuser.survey;
     input name $ cereal pastry bagel;
datalines;
John 10 9 8
Sam 2 8 4
Sally 5 7 6
;


2006년 백승민 제작하였답니다. 
( http://cafe.daum.net/statsas )