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 90th percentile for a data named Battle

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

In SAS one can calculate the percentiles using a procedure called PROC UNIVARIATE.

Important options which are used while calculating the percentiles in PROC UNIVARIATE are:

1. PCTLPTS: This specifies the percentile levels you want to extract

2. PCTLPRE: This is nothing but one or more prefixes to create the variable name for the variables that will contain the PCTLPTS or percentiles.

3. PCTLNAME: It lists out one or more suffixes to create the variable names that contain PCTLPTS or percentiles.

Given a full data set, you need to run the code for percentile calculation for multiple variables:

Let's assume you need to get 90th percentile for each of the variables namely a,b and c from Battle dataset

The code for 90th percentile would be:

proc univariate data = battle

no print;

var a b c;

output out = outdata PCTLPTS = 90

PCTLNAME= _P90;

run;

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