Question

In: Economics

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

Solutions

Expert Solution

Here, I am assuming 'Battle' is the name of the dataset and 'Battle_var' is the variable in Battle dataset for which we are required to calculate the 80th percentile. 'Battle_perc' is the output dataset or table that is created. 'Battle_var_80' is the table heading that will be shown in the Battle_perc table and will have the 80th percentile value.

In SAS, first we will have to write the data step to load the data in Work. Then using proc UNIVARIATE, we can find out the 80th percentile for the required variable. Finally, using proc print, we can print the output table.

Note: PCTLPTS will be assigned the pecentile that we want to compute.

This is shown in the following code:

/* Loading dataset */

data Battle;

set Battle;

run;

/* Computing 80th percentile for Battle_var */

proc univariate data=Battle noprint;

var Battle_var;

output out=Battle_Perc PCTLPTS=80 PCTLPRE=Battle_var_80;

run;

/* Printing the table with 80th percentile computed for Battle_var in Battle dataset */

proc print data=Battle_perc; run;


Related Solutions

Using SAS is preferred but not required. Please provide SAS code and the relevant output if...
Using SAS is preferred but not required. Please provide SAS code and the relevant output if SAS is used. •             Link to referenced FEV.CSV: https://drive.google.com/open?id=1t1CRIbnTE7xL_OE9Bmajb564RXcg8nDo For all hypothesis testing problems: •             state the null and alternative hypotheses, •             calculate the value of the test statistic, •             determine if the results are statistically significant (using rejection region or p-value approaches), •             then state your conclusion in terms of the problem. 1.            FEV (forced expiratory volume) is an index of pulmonary function...
Write Verilog code using for 3:8 Decoders with Quartus-II CAD software?? and write code of Full...
Write Verilog code using for 3:8 Decoders with Quartus-II CAD software?? and write code of Full adder using 2 half adder ?
Using this SAS code for the data. The outcome variable is SBP and should be coded...
Using this SAS code for the data. The outcome variable is SBP and should be coded to appear on the y-axis. Note: you have to write the appropriate program Answer the following questions: Report the correlation coefficient and the p-value. (2pts) Report the parameter estimate for the intercept and heart rate (4pts) Using the regression equation, what is the expected blood pressure for someone with a heart rate of 153? (4pts) data sas_test; input hr sbp; datalines; 35 80 50...
Here is the start of the SAS code to address this question: DATA READING; INPUT GROUP...
Here is the start of the SAS code to address this question: DATA READING; INPUT GROUP $ WORDS @@; DATALINES; X 700 X 850 X 820 X 640 X 920 Y 480 Y 460 Y 500 Y 570 Y 580 Z 500 Z 550 Z 480 Z 600 Z 610 ; Is there a significant difference between the mean reading score among the groups? Yes No Assuming you answer "yes" in the previous question, between what groups was there a...
Predictive Modeling Using Neural Networks (For SAS Enterprise Miner software) In preparation for a neural network...
Predictive Modeling Using Neural Networks (For SAS Enterprise Miner software) In preparation for a neural network model, is the imputation of missing values needed? Why or why not?
Write code in SAS to do each of the following I have posted the data below...
Write code in SAS to do each of the following I have posted the data below from a pace delimited data set consisting of 66 randomly selected cars Upload the data set to SAS and store it as a SAS data set called cars. Make sure the full values are stored for all character variables. Create a comparative bar chart (with appropriate title and labels) displaying the brands of each car by fuel type (so that fuel type is on...
HISTORY OF ECONOMIC THOUGHT QUESTION: 1. Recall from your basic studies of economics, when markets are...
HISTORY OF ECONOMIC THOUGHT QUESTION: 1. Recall from your basic studies of economics, when markets are working well, the factors of production (land owners, laborers, and the owners of capital) are paid according to the value they contribute to the production process. Was that true during the time of the utopian socialists? HINT: Were some factors getting paid more than they contributed while others were paid less? How did this contribute to the problems the utopians proposed to change?
Analysis of Unobserved Component Models Using PROC UCM Analyzes "PROC UCM" WITH STATISTICAL SOFTWARE SAS or...
Analysis of Unobserved Component Models Using PROC UCM Analyzes "PROC UCM" WITH STATISTICAL SOFTWARE SAS or R. THE FOLLOWING DATA CONTAINING THE SUGAR PRICE INDEX, SINCE JANUARY 2010 UNTIL DECEMBER 2015 SHOW THE CODE USED AND THE RESULTS DATE valor ene-10 375.5 feb-10 360.8 mar-10 264.8 abr-10 233.4 may-10 215.7 jun-10 224.9 jul-10 247.4 ago-10 262.7 sep-10 318.1 oct-10 349.3 nov-10 373.4 dic-10 398.4 ene-11 420.2 feb-11 418.2 mar-11 372.3 abr-11 345.7 may-11 312.2 jun-11 357.7 jul-11 400.4 ago-11 393.7...
write a code in fortran 77 and link with the reference refrigerant properties software and code...
write a code in fortran 77 and link with the reference refrigerant properties software and code should be for parametric models and optimisation for rapid thermal design advance solution feature of cinder offline provide thermal analysis to make a preliminary thermal design calculations your code should fulfill the requirement
write a summary about what is economics and the types of the economic system and their...
write a summary about what is economics and the types of the economic system and their advantages and disadvantages and Islamic economic theory  and principle of Islamic economics /and neoclassical versus Islamic economic theory and the objective of an Islamic economic system
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT