Question

Run this program to create a permanent SAS data set called Survey2007. Close your SAS session,...

  1. Run this program to create a permanent SAS data set called Survey2007. Close your SAS session, open up a new session, and write the statements necessary to compute the mean age.

* Write your LIBNAME statement here; data

–fill in your data set name here- ; input Age Gender $ (Ques1-Ques5)($1.);

/* See Chapter 21, Section 14 for a discussion of variable lists and format lists used above */

datalines;

  1. M 15243 30 F 111 42 M 23555 48 F 55541 55 F 42232 62 F 33333 68 M 44122

                             ;      

* Write your libname statement here; proc means data= - insert the correct data set name -; var Age;

run;

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Run this program to create a permanent SAS data set called Survey2007. Close your SAS session,...
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
  • HELP WITH SAS Run the following DATA step to create a SAS data set called ABC_CORP....

    HELP WITH SAS Run the following DATA step to create a SAS data set called ABC_CORP. Create a new sas data set called AGES that contains all the variables in ABC_CORP plus three new variables. One is AGE_ACTUAL, which is the exact age from DOB to January 15, 2005. The second is AGE_TODAY, which is the age as of the date the program is run, rounded to the nearest tenth of the year. The third is AGE, with the fractional...

  • 14. Write a SAS program to do the following tasks in order. You must label each...

    14. Write a SAS program to do the following tasks in order. You must label each question in the program by using comment statement like /* Q14a */ on the line where your answers to Q14a begin. a.   Define the Library Q14A using LIBNAME statement to connect to the SASData folder inside STA575 folder on the U-drive. b.   Define the Library Q14B using LIBNAME statement to connect to a new folder Q14DATA inside STA575 folder on the U-drive. Create a...

  • SAS BASE PROGRAMMING Q proc contents data-data1.admit; run; Select one: a. Creates a report containing summary...

    SAS BASE PROGRAMMING Q proc contents data-data1.admit; run; Select one: a. Creates a report containing summary statistics b. Creates a report containing status messages regarding execution c. Creates a report containing the variable attributes O d. Creates a report containing the observations data NULL; Select one: a. Instructs SAS to write output to the NULL data set in the work library. b. None of the other choices C. Instructs SAS to write output without creating a data set. d. Is...

  • SAS code for problem: title 'grocery questions'; data a; /* This data set will be a temporary sas...

    SAS code for problem: title 'grocery questions'; data a; /* This data set will be a temporary sas file with name 'a' . In this example we don't need to refer to this name as if there is only one temporary sas file in use, any procedure will automatically use it. */ input y x1 x2 x3 ; /* names input variables */ cards; 4264 305657 7.17 0 4496 328476 6.2 0 4317 317164 4.61 0 4292 366745 7.02 0...

  • You will create a new project. Type in the following program and run it to produce...

    You will create a new project. Type in the following program and run it to produce the output for the program. Good practice in writing a program in any language, including Python, is to add comments for each line and state clearly what is the program input and output. Your program must include comments, so a reader will know exactly what you are trying to do in each line of code and allow for easy maintenance. Beginning a line with...

  • Write a program called RentalRate.java which reads in a date of birth, today’s date and a...

    Write a program called RentalRate.java which reads in a date of birth, today’s date and a male/female designation from the user, and will then determine the basic daily and weekly rates for rental of an economy class car. Rental rate classes are: Best rate (male drivers, age 33–65 and female drivers, age 30-62)--$40.00per day, $200.00 per week Risk rate 1 (female drivers, age 25–29)–Best rate plus $10.00 per day or best rate plus $55.00 per week. Risk rate 2 (male...

  • I would need both SAS & R code, the output and .txt file/s, please. Because many...

    I would need both SAS & R code, the output and .txt file/s, please. Because many HMOs either do not cover mental health costs or provide only minimal coverage, min- isters and priests often need to provide counseling to persons suffering from mental illness. An in- terdenominational organization wanted to determine whether the clerics from different religions have different levels of awareness with respect to the causes of mental illness. Fifteen clerics from different Christian denominations were sampled. Each was...

  • + Run C Code IMPORTANT: • Run the following code cell to create the input file,...

    + Run C Code IMPORTANT: • Run the following code cell to create the input file, biostats.csv, which you will be using later. 74, In [ ]: N %%file biostats.csv Name, Sex, Age, Alex, M, 41, Bert, M, 42, Dave, M, 39, Elly, F, 30, Fran, F, 33, Jake, M, F, Luke, M, 34, F Myra, M, M, 38, Ruth, F, 28, 22 22 323 47 47, Height, Weight 170 200 167 70 115 143 139 280 98 75, 350...

  • Javascript Problem: Using the data set as a pre-defined variable in your program, write code that...

    Javascript Problem: Using the data set as a pre-defined variable in your program, write code that uses the dataset to print the first names of people with above average math grades and below average age from the dataset. Requirements: Cannot use any built-ins except filter(), map(), and reduce(). Apply higher-order functions to your solution. Dataset: var dataSet = [ { "name": "Maura Glass", "age": 60, "math": 97, "english": 63, "yearsOfEducation": 4 }, { "name": "James Gates", "age": 55, "math": 72,...

  • Problem 1 The following data are from a research project on the effectiveness of a drug in reducing LDL chole...

    Problem 1 The following data are from a research project on the effectiveness of a drug in reducing LDL cholesterol levels. While some patients in the study are assigned to the drug, others were given a placebo. Because the information about who is receiving the actual drug is kept confidential from those taking LDL measurements, that information is kept in a separate data set. Given below in Data Set A are the initial LDL cholesterol level of each individual before...

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