Question

In: Computer Science

Please type SAS code for questions below Age < 65 N = Age ≥ 65 N...

Please type SAS code for questions below

Age < 65

N =

Age ≥ 65

N =

Total

N =

Sex

     Male

     Female

Region

     Northeast

     Midwest

     South

     West

Race

     White

     Black

     Asian

     All other race groups

Solutions

Expert Solution

Age < 65

N =

Age ≥ 65

N =

Total

N =

Sex

     Male

     Female

Region

     Northeast

     Midwest

     South

     West

Race

     White

     Black

     Asian

     All other race groups

( FOR CONDITION AGE < 65 )

DATA TEMP;

INPUT ID SEX ;

INPUT ID REGION;

INPUT ID RACE

DATALINES;

1 MALE NORTHEAST WHITE

2 MALE MIDWEAST BLACK

3 MALE SOUTH ASIAN

4 MALE WEST ALL OTHER RACE GROUPS

5 FEMALE NORTHEAST WHITE

6 FEMALE MIDWEAST BLACK

7 FEMALE SOUTH ASIAN

8 FEMALE WEST ALL OTHER RACE GROUPS

;

RUN;

*PROCE STEP ****

PROC MEANS;

RUN;

*OUTPUT STEP***

PROC PRINT DATA=TEMP;

WHERE AGE < 65;

RUN;

( FOR CONDITION AGE >= 65 )

DATA TEMP;

INPUT ID SEX ;

INPUT ID REGION;

INPUT ID RACE

DATALINES;

1 MALE NORTHEAST WHITE

2 MALE MIDWEAST BLACK

3 MALE SOUTH ASIAN

4 MALE WEST ALL OTHER RACE GROUPS

5 FEMALE NORTHEAST WHITE

6 FEMALE MIDWEAST BLACK

7 FEMALE SOUTH ASIAN

8 FEMALE WEST ALL OTHER RACE GROUPS

;

RUN;

*PROCE STEP ****

PROC MEANS;

RUN;

*OUTPUT STEP***

PROC PRINT DATA=TEMP;

WHERE AGE <= 65;

RUN;


Related Solutions

Please write SAS code 1) How to find age<65*Female? 2) How to assign region for the...
Please write SAS code 1) How to find age<65*Female? 2) How to assign region for the below description? Age < 65 Age ≥ 65 Total N Sex      Male      Female Region      Northeast      Midwest      South      West Race      White      Black      Asian      All other race groups Table 1: RACERPI2: 01 – White Only (New Category: White) 02 – Black/African American Only (New Category: Black) 03 – AI/AN Only (New Category: All Other Race Groups) 04 – Asian Only (New Category: Asian) 05 – Race...
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...
I need the code in SAS and R and outputs please 2. The data below come...
I need the code in SAS and R and outputs please 2. The data below come from a study investigating a method of measuring body composition, and give the body fat percentage (% fat), age and sex for 18 adults aged between 23 and 61 years. Source: Mazess, R.B., Peppler, W.W., and Gibbons, M. (1984) Total body composition by dual-photon (153GD) absorptiometry. American Journal of Clinical Nutrition, 40, 834-839. age % fat sex 23 9.5 male 23 27.9 female 27...
In the L/N column in the table below, please type V if the value is a...
In the L/N column in the table below, please type V if the value is a valid python integer value or N if the value is not a valid python string value. Value V/N \3.14\ ″Python - /″2018″ ″Python - \n2018″
Assuming the AD shortfall = $2235B and MPC = .65, complete the questions below. Please round...
Assuming the AD shortfall = $2235B and MPC = .65, complete the questions below. Please round to at least 2 decimal places. a. (10 pts) Given the situation in a, if government spending increases by $782B, calculate the impact to aggregate demand. Illustrate this scenario on the appropriate graph. QF and the shift that occurs must be included on the graph. Is there a GDP gap? If so, what type? b. (10 pts) Given the situation in a, calculate what...
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...
In SAS code please. Tennis balls are tested in a machine to show how many bounces...
In SAS code please. Tennis balls are tested in a machine to show how many bounces they can withstand before they fail to bounce 30% of their dropping height. Two brands of balls (W and P) are compared. In addition, the effect of shelf life on these brands is tested. Half of the balls of each brand are 6 months old, the other half, fresh. Using a two-way analysis of variance, what conclusions can you reach? The data are shown...
Use SAS. Please include the code and the answers. 1. Generate 625 samples of size 961...
Use SAS. Please include the code and the answers. 1. Generate 625 samples of size 961 random numbers from U(1, 9). For each of these 625 samples calculate the mean: a) Find the simulated probability that the mean is between 5 and 5.2. b) Find the mean of the means. c) Find the standard deviation of the means. d) Draw the histogram of the means.
Need SAS code for inferred two population variance testing 2 brand of tires. N= 10 each...
Need SAS code for inferred two population variance testing 2 brand of tires. N= 10 each and alpha= 0.1 data is below Using hand calculation, there is significant evidence that there is a significant difference between the 2 variance. I need a SAS code to: reproduce the test statistics and what is the p-value for inferring 2 variances. brand I Brand II 1 38.99 2 44.6 1 39.7 2 46.9 1 42.3 2 48.7 1 39.5 2 41.5 1 39.6...
----- Please solve the questions with the code below. Thank you. ----- Exercise Overview Refactor your...
----- Please solve the questions with the code below. Thank you. ----- Exercise Overview Refactor your code to enhance the user experience and to use objects and classes. All functional requirements in Project 1 remain, except where enhancing the system replaces specific functions. Functional Requirements The console entry point for the user inputs is on the same line as the prompt. (new) User enters name at the beginning of a session. System covers four math operations – addition, subtraction, multiplication,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT