Search
 
 

Display results as :
 


Rechercher Advanced Search

Keywords

Affiliates
free forum


MLF option added in Proc Report

View previous topic View next topic Go down

MLF option added in Proc Report

Post  pallav on Mon Mar 26, 2012 2:28 pm

In Proc Report new option called MLF (Multilable format) is added to define statement.

For Example:

proc format;
value agelfmt (multilabel)
11='11'
12='12'
13='13'
14='14'
15='15'
16='16'
11-12='11 or 12'
13-14='13 or 14'
15-16='15 or 16'
low-13='13 and below'
14-high='14 and above' ;
run;
/*Create the AGE1FMT. format.The FORMAT procedure creates a multilabel */
/*format for ages by using the MULTILABEL option. A multilabel format */
/*is one in which multiple labels can be assigned to the same value. */
/*Each value is represented in the table for each range in which it occurs.*/

ods html file="example.html";
title "GROUP Variable with MLF Option";
proc report data=sashelp.class nowd;
column age ('Mean' height weight);
define age / group mlf format=agelfmt. 'Age Group';
define height / mean format=6.2 'Height (in.)';
define weight / mean format=6.2 'Weight (lbs.)';
run;
ods html close;


Here you can see that age is define as a group with MLF option.

Which will give the output like below.


pallav

Posts : 98
Join date : 2012-03-14
Location : Ahmedabad

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum