Question

This is an Economics Question When using the SAS software for Economic calculations, write the code...

This is an Economics Question

When using the SAS software for Economic calculations, write the code for calculation of mean median mode and 40th percentile for a data file named ISRO

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Okay so in SAS, the codes are extremely user friendly. If you want mean ( average) you just mention mean

If you want median (the middle most observation in a set of observations) you write median and likewise.

However saying all these is just not enough. So, let's plunge into framing the solution formally.

We shall be using the PROC MEANS statistical method for answering this.

Let's also assume that the dataset ISRO is located in an user defined library called mylib (which contains all SAS related datasets you possess)

PROC MEANS DATA = MYLIB.ISRO MEAN MEDIAN MODE P40 ;
RUN;

Now this code may not work in all cases & if such is the scenario, we can have a more powerful alternative : PROC UNIVARIATE. This is a more powerful & descriptive procedure & provides you with almost all basic statistical measures at one go.

The code goes like this

PROC UNIVARIATE DATA = MYLIB.ISRO;
RUN;

Note one thing here, if you're only interested in a particular numerical variable present in the ISRO dataset, just add the following line before the run statement.

VAR ____;

In the blank, mention your variable name. Otherwise what will happen is you'll get details of ALL the numerical variables which you might be having in the ISRO dataset.

If there're multiple variables then just do this:

VAR Var1 var2 var3 ...... ;

Var1 = name of your first numerical variable

Var 2 = name of the second numerical variable & so on.

Add a comment
Know the answer?
Add Answer to:
This is an Economics Question When using the SAS software for Economic calculations, write the code...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT