QuestionQuestion

1. Consider the following small data set:
Kane   20 12 2005 12 25
Ambler 22 12 2005   8 20
Kane   20 01 2006 13 32
Oakey 32 12 2005 30 50
Oakey 32 01 2006 25 45
Ambler 22 01 2006 15 28
Assume that the columns, from left to right, represent one character variable (town name) and five numeric variables (town number, month, year, low daytime temperature (in degrees F) and high daytime temperature (in degrees F)).
Use list input to read the data ino a permanent SAS data set using a DATALINES statement. Print the data set. Also, create output that displays information about the descriptor portion of your data set. Center your output and set the linesize to no more than 80 characters.

2. The data set rats.dat contains the following variables, in order, on a set of eight rats:
• rat, rat number
• dob, date of birth
• disease, date of disease
• death, date of death
• group, treatment group
Save the file to a convenient location on your computer, and then without editing the file in anyway read the data from the ascii file into a temporary SAS data set called rats. You will probably need to access SAS Help and Documentation to learn the appropriate informat to read in the dates. When reading in the data, do what you need to do to read in rat and group, but use a relative pointer control to read in dob and absolute pointer controls to read in disease and death.
Print the resulting data set, formatting the variables as necessary so that when printed they make sense. Set your page size to 56, your line size to 78, center the output, and suppress the printing of the date and time that the output was created.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

SAS Code is given below:
Libname data "C:\Users\ ";
data data.one;
input Name $ Number Month Year Low_Temp_dayHigh_Temp_day;
datalines;
Kane   20 12 2005 12 25
Ambler 22 12 2005   8 20
Kane   20 01 2006 13 32
Oakey 32 12 2005 30 50
Oakey 32 01 2006 25 45
Ambler 22 01 2006 15 28
;
run;
Proc print data = data.one;
run;
Proc contents data = data.one;
run;
option LINESIZE=80 Center;
Proc univariate data = data.one;
var Low_Temp_dayHigh_Temp_day;
run;...

By purchasing this solution you'll be able to access the following files:
Solution.docx.

$35.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Applied Statistics Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats