SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
SAS 教學 2012/12/20

      助教:鄭凱駿
  icefu4k6@gmail.com
Outline
• 在類別資料上的應用
• Label
• Format
PROC FORMAT;
                                       Label & Format
                                          3.0      17.4    2
  VALUE $MAJORFT '1'='Accountancy'        2.6      17.3    2
                    '2'='Marketing';      3.3      18.1    2
RUN;                                      2.9      18.0    2
DATA SALARY;                              2.4      16.2    2
                                          2.8      17.5    2
  INPUT X Y MAJOR $;
                                          3.7      21.3    2
  LABEL X='GPI (X)'                       3.1      17.2    2
        Y='SALARY (Y)';                   2.8      17.0    2
  FORMAT MAJOR $MAJORFT.;                 3.5      19.6    2
CARDS;                                    2.7      16.6    2
                                          2.6      15.0    2
2.7     17.0     1
                                          3.2      18.4    2
3.1     17.7     1                        2.9      17.3    2
3.0     18.6     1                        3.0      18.5    2
3.3     20.5     1                        RUN;
3.1     19.1     1                        PROC PRINT LABEL;
                                            TITLE 'STARTING SALARY DATA';
2.4     16.4     1
                                            TITLE2 '(TABLE 8.1, BERENSON, LEVINE, AND
2.9     19.3     1                        GOLDSTEIN)';
2.1     14.5     1                        RUN;
2.6     15.7     1
3.2     18.6     1
3.0     19.5     1
2.2     15.0     1
2.8     18.0     1
3.2     20.0     1
2.9     19.0     1
Format
PROC FORMAT;
  VALUE $MAJORFT '1'='Accountancy'
                 '2'='Marketing';
RUN;


FORMAT MAJOR $MAJORFT.;
Label
LABEL X='GPI (X)'
      Y='SALARY (Y)';


PROC PRINT LABEL;
Sas 教學 2012 12-20
考試方向
• 指令是否完整改錯
• 怎麼自己建構兩個或多個類別的分類指標
  撰寫程式碼

Mais conteúdo relacionado

Destaque (10)

Photo social network compare
Photo social network comparePhoto social network compare
Photo social network compare
 
SAS 2012-11-22 array
SAS 2012-11-22 arraySAS 2012-11-22 array
SAS 2012-11-22 array
 
Recuperacion de biologia 10. 2016
Recuperacion de biologia 10. 2016Recuperacion de biologia 10. 2016
Recuperacion de biologia 10. 2016
 
Taller grado 10
Taller grado 10Taller grado 10
Taller grado 10
 
Recuperación grados sextos 2017 cupitra
Recuperación grados sextos 2017 cupitraRecuperación grados sextos 2017 cupitra
Recuperación grados sextos 2017 cupitra
 
Taller recuperacion final septimo
Taller recuperacion final septimoTaller recuperacion final septimo
Taller recuperacion final septimo
 
Nivelacion 9° mat geom
Nivelacion 9° mat  geomNivelacion 9° mat  geom
Nivelacion 9° mat geom
 
Refuerzo lenguaje
Refuerzo lenguajeRefuerzo lenguaje
Refuerzo lenguaje
 
Power
PowerPower
Power
 
Seller disclosure
Seller disclosureSeller disclosure
Seller disclosure
 

Sas 教學 2012 12-20