• 검색 결과가 없습니다.

creating SAS data sets from raw data files

N/A
N/A
Protected

Academic year: 2022

Share "creating SAS data sets from raw data files"

Copied!
11
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Getting Your Data into SAS

Statistical Data Analysis 1

Namhyoung Kim

Dept. of Applied Statistics Gachon University

nhkim@gachon.ac.kr

1

(2)

Structure of SAS data set

ID NAME GENDER WEIGHT HEIGHT

1 101 김철수 M 74 170

2 102 이영희 F 68 166

3 103 안수지 F 55 155

4 104 박민호 M 72 167

5 105 M 66 169

6 106 강지영 F 52

observations(rows) missing value

variable (columns)

Data types

numeric: numbers

character: everything else. may contain numerals, letters, or special characters can be up to 32,767 characters long.

(cf. ZIP codes)

(3)

Methods for Getting Your Data into  SAS

creating SAS data sets from raw data files

 the DATA step

 the Import Wizard

entering data directly into SAS data sets

 the Viewtable window

 SAS Enterprise Guide software

3

(4)

Creating SAS data sets from raw data files

Raw data

Variable

name contents Colum

n No. Code values

id 고객번호 1-2 고유번호(ID)

age 연령대 3

1=20대, 2=30대, 3=40대, 4=50대, 5=60대 이상

gender 성별 4 M=남자, F=여자

item1 좋은 제품을 만들기 위해 노력한다 5

1=예, 2=보통, 3=

아니오, .=모름/무응

item2 소비자를 중요하게 여긴다 6

item3 신뢰할만한 기업이다 7

text file: 기업이미지.txt code book

(5)

Creating SAS data sets from raw data files

5

DATA name ; INFILE ‘path and filename’;

INPUT variable_name ($) col_no;

(6)

Creating SAS data sets from raw data files

results

(7)

Using imported data in a SAS  program

7

or, since WORK is the default library, you could also use:

(8)

Using imported data in a SAS  program

results

(9)

SAS Data Libraries

SAS library

 a location where SAS data sets(as well as other types of SAS files) are stored.

 a folder or directory on your computer, or a physical location like a hard drive, USB or CD.

 WORK library: a temporary storage location(default)

 SASHELP, SASUSER libraries

 To set up a library

 using the LIBNAME statement

 using the New Library window in the SAS Windowing Environment

9

(10)

Using permanent SAS Data Sets  with LIBNAME statements

LIBNAME library ‘folder’

(11)

Using permanent SAS Data Sets  with Library explorer

11

참조

관련 문서

농어촌학생(학생부 종합), 기초생활수급자 및 차상위계층(학생부 종합) 전형의 미충원 인원은 정시모집 특별전형으로 선발하며, 대학 수학능력시험 성적 반영

‘양난’은 사람들에게 그저 낯선 존재였다. 비봉화원 앞에 늘어선 양 난의 향기에 먼저 발길을 멈췄던 것은 강원대학교 교수들이었다. 해 외출장 시에만 봤던 ‘향기 나는

우리 대학은 지역사회연구원과 함께 다양한 포럼 및 심포지엄을 개최 해 남북 평화와 통일 문제에 대한 국민 소통 강화와 지역 통일공감대 확산을 위해 노력하고

국내인턴 프로그램 방학기간 4주 동안 기업체에서 인턴실습을 통해 직무 준비도 하고 실습 종료 후 장학금(40만원)도 지급되는 프로그램 정보화 자격취득

[r]

수험생은 지원한 대학이 지정하는 장소에 지정된 시각까지 반드시 입실하여 관계자의 안내에 따라야 하며, 지정된 시각까지 고사장에 입실하지

[r]

뉴미디어 분야에서 일할 전문 인력 양성을 목표로 설립된 연극영화학과는 다매체 연기자, 방송PD, 연극, 뮤지컬, 영화 제작ㆍ기획ㆍ연출 및