Dear all,
proc means data=dsn noprint completetypes;
class trtmntgroup /preloadfmt;
output out=tot n=n;
format trtmntgroup trtf. ;
by vstgrp descending severity;
run;
This is the code I used for AE table. I got the values
without giving the variable ‘trtmntgroup(numeric)’ in var
statement. And if I give the var statement for that variable
i’m getting the same values.How is that possible? What is
the difference between class and var statement? Could any
one explain me how does proc means work at the back end.
And what is the difference between _freq_ value and N value
in proc means.
Thanks and regards,
Rajesh.
Answer / vivek
Can use CLASS or BY. However if BY is used then the dataset
should be sorted first.
The _FREQ_ variable is automatically generated by SAS and
shows the number of observations for each level of the
CLASS variable.
The _N_ variable is automatically generated by SAS. It is
initially set to 1, and it increments by 1 every time the DATA
step iterates.
| Is This Answer Correct ? | 1 Yes | 1 No |
what is SAS OPTIMIZATION?
What is the good sas programming practices for processing large data sets?
what is program data vector? : Sas-administrator
Describe 5 ways to do a “table lookup” in SAS?
I Here clinical SAS training by Ramesh Azmeera is good. Is it confirm ?
What is the difference between match merge and one to one merge?
how will you locate the sas platform applications? : Sas-bi
How to get second top scorer student from a class- table having different sections A, B, C & D? each section has same number of student.
What is SAS Information Map Studio and its purpose ?
Explain the use of proc gplot? : sas-grid-administration
What is factor analysis?
i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?