1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 1
Date: January 15, 2014
Answer the following questions in the space provided. Use the back of the page if necessary. DO NOT USE A COMPUTE
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Project
DUE DATE: April 9, 2012
INSTRUCTIONS:
1. Please nd one or two partners to work together with on this project. Print the names
of all grou
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Project
DUE DATE: April 4, 2011
INSTRUCTIONS:
1. Please nd one or two partners to work together with on this project. Print the names
of all grou
Tutorial11 Solutions
1. SAS codes to read data:
DATA TOMATO;
INFILE H:\TA3850\Tur11\TOMATO.TXT FIRSTOBS = 2;
INPUT YIELD LIGHT WATER;
RUN;
2. The model is tted as :
Y = 1.83 + 6.08X1 + 4.55X2
where Y = yield, X1 = amount of light and X2 = amount of water.
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Tutorial Assignment 11
1. Read in the tomato.txt le into SAS data set called TOMATO. (Note that this is from Exercise
9.1 and was discussed in th
Tutorial 11 Solutions by Kevin Wenkai Ma
1.a The tted model is
logiti = 6.47 5.57 conci
or
Pi =
1
1 + exp(6.47 + 5.57 conci )
Where Pi is the probability of movement at a concentration level conci
SAS codes to read data:
DATA ANES;
INFILE H:\13TA3850\Tur1
Tutorial10 Solutions
1. SAS Code to read in the data:
DATA DOLPHINS;
INFILE H:\13TA3850\DOLPHINS.TXT;
INPUT HWEIGHT TWEIGHT SPECY $;
RUN;
The procedure we need to do ANCOVA relating heart weight with species,
taking total weight into account, is PROC GLM.
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Tutorial Assignment 8
1. 12 patients complaining of headaches were randomly assigned to 3 groups for the purpose of
testing a new pain medication
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 6
Date: March 16, 1878
Answer the following questions. Enter your answers into a text le (use NOTEPAD). Email your
completed le to [email protected]
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 3
Date: February 16, 1878
Answer the following questions. Enter your answers into a text le (use NOTEPAD).
Email your completed le to brau
Introduction: Objectives and a Brief Overview
Course Objectives:
to appreciate the assumptions behind statistical models.
to read and write SAS programs.
to interpret the output from a SAS program.
1
Objectives
Main Reason for Learning SAS: Data Analys
Ch 12 More on Input
1.
2.
3.
4.
5.
List-directed Input
Comma-delimited Data
Column Input
Column Pointers
Reading more than one line per subject
This covers textbook sections 12BCDEFG.
Textbook Exercises: 12-1, 12-2, 12-3, 12-5, 12-6, 12-8,
12-9
1
List-dir
Ch. 10 Principal Components Analysis (PCA)
Outline
1.
2.
3.
4.
Why use PCA?
Calculating Principal Components
Using Principal Components in Regression
PROC FACTOR
This material is loosely related to Section 10B. I would
encourage you to read the rest of Ch
Ch. 8 Repeated Measures Designs
Outline
1. Fixed Eects vs Random Eects
2. Mixed Eects
3. PROC MIXED
This material covers sections 8BD
1
Fixed Eects vs Random Eects
The analysis of variance model studied earlier assumes
xed eects.
For the one factor mode
Chapter 6 T-tests
PROC TTEST can be used to conduct a test for differences between the means of two populations.
Assumptions:
two independent random samples have been taken
from each of the populations.
the populations are normally distributed.
In th
Chapter 2 - Describing Data
1. Summary Statistics - Proc Means
2. More Statistics and Plots - Univariate
Note that for good plots, SAS is not recommended.
Other packages such as Mathematica, Matlab, Maple
and R are much better.
3. Proc Sort
This covers se
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Tutorial Assignment 7
1. The le salaries.txt consists of the records of a random sample taken from an employment
database. Test for dierences in
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Tutorial Assignment 4
1. Consider the following SAS program which simulates 100 independent observations on
two categorical variables: gender a
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Tutorial Assignment 5
1. Consider the following SAS program which is similar to what was considered last week
on gender and interest in SAS.
DA
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz Solution 2
Date: January 23, 2012
Answer the following questions in the space provided. Use the back
of the page if necessary. DO NOT USE
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz Solution 1
Date: January 23, 2012
Answer the following questions in the space provided. Use the back
of the page if necessary. DO NOT USE
The University of Western Ontario
Department of Statistical and Actuarial Sciences
SS 3850B-001 Data Analysis
Final Examination
Time: 09:00
Duration: 3 hours
Date: April 24, 2012
Type: Essay open-book No. of Pages: 12 Aids: Calculator permitted
Instructio
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 5 Solutions
1. We use a regression model to relate average daily usage to average temperature:
u = 12.05 0.6304t
where u is daily usage in
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 6 Solution
1. Refer to the data in the le margarine.txt. Here, ve samples of dierent brands
of margarine were analyzed. The level of physi
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 3850B
Quiz 8
Date: April 10, 2013
1. A logistic regression model has been t to 40 observations on carcinogen dosage X and
the presence (T = 1) or abs