The format statement associates formats with the variables in the SAS data step.
General form of the format statement is: FORMAT variable(s) format;
Where the format is in the following form:
HW1 - Math 313 - September 8, 2016
As all of you will likely have learned in earlier courses, such as Sewanees Math 215 (and several
of you have been reminded recently by Dr. Drinen in Math 303), writing mathematics, especially
writing mathematical proofs
HW 3 - Math 313 - September 29, 2016
In this assignment and from now on, follow the guidance in Professor Drinens primer on mathematical writing (http:/drinen.sewanee.edu/m303f16/proof-cheatsheet.pdf).
Include a coversheet, start each problem on a new pag
Home Work 7
Due by 12:00 noon, 3/6 (Sunday)
1. First, run the following SAS code:
libname cdat '/courses/ddbf9765ba27fe300';
proc summary data=cdat.simulated_card_data nway missing;
output out=sum_by_offer sum=;
Merging combines observations from two or more SAS data sets into one SAS data set
One-to-One Merging: If the by variable is not specified, two or more SAS data sets
Home Work 1
Due by 12:00 noon, 1/10/2015 (Sunday)
SAS statements usually begin with an identifying keyword.
Every SAS statement ends with a semicolon or ;.
Character variable values can be up to 32,767 or 2^15-1 char
Home Work 4
Due by 12:00 noon, 2/14 (Sunday)
Make sure to run your program in SAS and check LOG and output before copy to HW4.
1. 1)Write a proc format use the following format, and name the format as ficofmt.
2)Then use the /courses/ddbf9765ba27fe300/sim
Home Work 3
Due by 11:00 pm, 1/30 (Saturday)
Note: Please read through the class document. The home work may be a little
harder this time. Start early so you can receive it early before the midterm.
1. Read and run the following sas code. Then write a sas
Home Work 2
Due by 10:00 pm, 1/17 (Sunday)
Note: Please read through the class document. Let me know for any questions.
Use the following data (blue font part) as data for CARDS statement.
Write a SAS program, read the data into SAS dataset: work.NFL_s
Class Note by Examples
General information about SAS
SAS Institute web site: www.sas.com
SAS Online Document:
The SAS environment mainly has three windows:
Home Work 5
Due by 11:00 pm, 2/20(Saturday)
Note: The array home work is significantly harder. Try to start early.
Let me know for any questions. Make sure you run the code in SAS.
1. Input data:
Home Work 6
Due by 12:00 noon, 2/28 (Sunday)
Note: Make sure you run the code in SAS. Let me know for any questions.
1. Run the following program creates two dataset group1 and group2.
input team $1-7 win loss;
Detroit 30 18
Reading selected observations or rows:
* Read the input data for the first 6 observations;
Note: OBS= dataset option can only be used for input dataset.
If the first row of the input text file contains the variabl
The array statement defines a set of variables as elements of an array.
The array variables has to be either all numeric or all character.
ARRAY array-namecfw_subscript <$> <lengt
Home Work 8-2
Due by 11:00 pm, 3/12 (Saturday)
Part 2: Macro Variables:
1. The macro triggers are: _%_ and _&_.
2. To display automatic macro variables (or System defined macro variables),
use: _%put _autoatic_; _
3. To display user-defined macro variable
HW 2.1 - Math 313 - September 22, 2016
As we discussed in class on September 15th, your assignment for September 22nd is to do as perfect
a version as possible of the homework originally assigned for September 15, making use of Professor
Drinens primer on