Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have a dataset concat having variable a b & c. How to rename a b to e & f?

1022


what are the scrubbing procedures in sas? : Sas programming

1286


What is the order of application for output data set options, input data set options and SAS statements?

1561


If you could design your ideal job, what would it look like?

2931


What can you learn from the SAS log when debugging?

1385


What are the features of SAS?

1035


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2375


is data integration and etl programming is same? : Sas-di

1084


What is maximum number of rows and cols can be handled in SAS?

1588


What do you understand by the term Normal Distribution?

990


what is the function of catx syntax? : Sas-administrator

1103


What is the difference between input and infile statement?

1175


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1794


What does proc print, and proc contents are used for?

1136


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

1010