Single data set
Run the following program to create three data sets, ONE, TWO, and TH REE. List the contents of all three using PROC PRINT. Now, combine the three data sets into a single data set called TOGETHER.
Run the following program to create three data sets, ONE, TWO, and TH REE. List the contents of all three using PROC PRINT. Now, combine the three data sets into a single data set called TOGETHER.
You have two data files, one from the year 1996 and the other from the year 1997, as follows: Create a SAS data set from each file (call them YEAR1996 and YEAR1997, respectively). Combine the data from each data set into a single file (call it BOTH).
Run the program from problem 4.9 to create the data set BLOOD. (a) Create a data set called TIME_ONE containing all the observations from BLOOD, where TIME is equal to 1. Omit the variable TIME from this data set. Use PROC PRINT to list the observations. (b) Create a data set called HIGH containing all
Combine the GYMMONEY data set from problem 14.5 with the data set BOTH from problem 14.3. Call the resulting data set FREDDY. Include only those IDs with data ill both data sets. List the contents of this data set Problem 14.5 You have a separate file on the children in problem 14.1.This file contains 10
You have temperature data for each day from Jan 1,2004, to Jan 15,2004. Run the following program to create a data set TEMP: The number of heart attack patients arriving at a hospital for each of the 15 days is also recorded. Run the following program to create a data set called MI (myocardial infarction,
The temperature data Read More »
You have a separate file on the children in problem 14.1.This file contains 10 numbers, income ranges, and the parents’ last name as follows: Note that there are IDs for which there is no GYM data and vice versa. First, create a SAS data set called MONEY from the previous data. Next, merge the two
Ten students took a test. The tests were scored by an optical mark sense reader (scanner), and the ID and test score (SCORE) were recorded for each student and stored in a SAS data set called TEST. The school maintains a SAS data set called STUDENTS with the ID and NAME of every student. You
You are given the SAS data set SPEED, created by running the following program. Create a new data set SPEED2 [Tom SPEED, with some new variables. The new variables LX1~LX5 are the natural (base e) logs of the variables XI-X5, and the variables SY1–sY3 are the square roots of the variables Y1- Y3. Use arrays
Rewrite the following program using two arrays, one for the numeric variables, the other for the character variables.
The numeric variables Read More »
For faster services, inquiry about new assignments submission or follow ups on your assignments please text us/call us on +1 (251) 265-5102