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 |
Mention the category in which sas informats are placed?
How do you debug and test your SAS programs?
if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually
How can I remove header from output data set?
what are some good sas programming practices for processing very large data sets? : Sas programming
Name any two sas spawners? : sas-grid-administration
how does sas handle missing values in an update? : Sas programming
How would you delete observations with duplicate keys?
I have 2 data sets A & B. Both have a variable called Age in them, each of them specifying a different functionality. In my program I use bot these data sets. How do I specify which Age variable I want to use?
how does sas handle missing values in functions? : Sas programming
How do you debug macros?
how do u test a pros sql(works or not) without executing it?