1
a)
Cumulative
Cumulative
survived
Frequency
Percent
Frequency
Percent
0
1490
67.70
1490
67.70
1
711
32.30
2201
100.00
The above table indicates 32.30% of the passengers survived.
b)
Table of class by survived
class
survived
Frequency
Percent
Row Pct
C
Assignment #6
(Due: April 15, 2011)
1. ThenumberofOringfailuresforthefirst23fightsoftheUSspaceshuttleChallengerwere
010NA0000011100300000201
(NAmeansnotavailable,theequipmentwaslost).Make atableofthepossiblecategories.Find
the mean. (You might need to try
Basics of R Exercises
Read the instructions closely!
Lines starting with > contain R codes, and they should be written without the > sign. Codes and
R outputs are typesetted with Courier font to separate them from normal text.
This exercise has been writt
SAS
In Class Exercise 7
1. You have a text file called grades.txt containing information on gender (M or F) and four test
scores (English, History, Math and Science). Each data value is separated from the others by
one or more blanks. Here is a listing of
SAS
In Class Exercise 2
1. You have a SAS data set called college.sas7bdat (copy it to your SASdata folder).
a. Compute the mean, median, minimum, maximum and the number of both missing
and nonmissing values for the variables ClassRank and GPA.
b. Repeat
SAS
In Class Exercise 3
1. Let us once again consider the Adjcereal data set.
a. Draw the following histogram to show the distribution of sugar with a normal
curve.
25
20
Percent
15
10
5
0
0
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
sugar
b. Make
SAS
In Class Exercise 1
1. You have a text file called grades.txt containing information on gender (M or F) and four
test scores (English, History, Math and Science). Each data value is separated from the
others by one or more blanks. Here is a listing of
dm 'log;clear;output;clear;';
o
options ps=50 ls=75 pageno=1;
*The following title will appear as the first line of every page in the output
window;
t
title1 'Exercise 7, STAT 6360';
title2 'Question 1';
data grades;
input Gender $ Eng Hist Math Sci;
grad
dm 'log;clear;output;clear;';
o
options ps=50 ls=75 pageno=1;
*
*ods pdf file="N:\solution.pdf";
*The following title will appear as the first line of every page in the output
window;
t
title1 'Exercise 6, STAT 6360';
*The following title will appear as t
dm 'log;clear;output;clear;';
o
options ps=50 ls=75 pageno=1;
*;
*
*;
* COURSE: STAT 6360
*;
* PURPOSE: In Class Exercise 4
*;
*
*;
*
*4-1;
*The following title will appear as the first line of every page in the output
window;
t
title1 'Problem 4-1, STAT
dm 'log;clear;output;clear;';
o
options ps=50 ls=75 pageno=1;
*;
*
*;
* COURSE: STAT 6360
*;
* PURPOSE: In Class Exercise 2
*;
*
*;
*
*2-1;
*The following title will appear as the first line of every page in the output
window;
t
title1 'Problem 2-1, STAT
dm 'log;clear;output;clear;';
o
options ps=50 ls=75 pageno=1;
o
ods rtf file="K:\6360\InClassExercise\Exercise1\Ex1solution.rtf";
*1-1;
*The following title will appear as the first line of every page in the output
window;
t
title1 'Problem 1-1';
*a. Writ
Datafile Name: Cereals
Datafile Subjects: Food , Health
Story Names: Healthy Breakfast
Reference: Data available at many grocery stores
Authorization: free use
Description: Data on several variable of different brands of cereal.
A value of -1 for nut
Chapter 2
R
Chapter 2
Simple Manipulations
- Numbers and Vectors
2.1
Vectors and Assignment
R operates on named data structures. The simplest such structure is the numeric vector,
which is a single entity consisting of an ordered collection of numbers. To
Chapter 3
R
Chapter 3
3.1
R Objects
Introduction of R Objects
The entities R operates on are technically known as objects. Examples are vectors of numeric
(real) or complex values, vectors of logical values and vectors of character strings. These are
kno
Chapter 4
Chapter 4
4.1
R
Export/Import Data
Data Export
a. The function cat is useful for producing output in user-defined functions.
> cat("Good morning!","\n") #\n: newline
Good morning!
> cat(file="K:\6360\Rdata\test.txt", "123456", "987654",
sep="\n"
Chapter 5
R
Chapter 5
5.1
R Graphics
Bar Chart
A bar chart draws a bar with a height proportional to the count in the table. The height
could be given by the frequency, or the proportion. The graph will look the same, but the
scales may be different.
Supp
Chapter 6
R
Chapter 6 Advanced Programming in R
Now that you have learned the elementary commands in R and many ways of applying
them, it is time to discover its advanced functionalities. This chapter introduces grouped
expressions, conditional execution,
Chapter 7
R
Chapter 7 Statistics in R
7.1 One-sample t test
Example: daily energy intake in kJ for 11 women.
> daily.intake <- c(5260,5470,5640,6180,6390,
+ 6515,6805,7515,7515,8230,8770)
> t.test(daily.intake,mu=7725)
> wilcox.test(daily.intake,mu=7725)
SAS
In Class Exercise 5
1. Given the following data:
XYZ
1 3 15
7 13 7
8 12 5
3 4 14
4 7 10
.
(a) Compute the Pearson correlation coefficient between X and Y; X and Z. What is the
significance of each?
(b) Generate a plot of Y versus X.
2. For the data s
SAS
In Class Exercise 6
1. A medical researcher wishes to determine if a pill has the undesirable side effect of reducing the
blood pressure of the user. The study involves recording the initial blood pressures of 15 collegeage women. After they use the
Chapter 2
STAT 4360 (PART II)
Chapter 2
Fall 2016
Simple Manipulations
- Numbers and Vectors
2.1
Vectors and Assignment
R operates on named data structures. The simplest such structure is the numeric vector,
which is a single entity consisting of an order
Chapter 1
Chapter 1
1.1
STAT 4360 (PART II)
Fall 2016
R Introduction and Preliminaries
The R Environment and Language
R is an integrated suite of software facilities for data manipulation, calculation and
graphical display.
The benefits of R for an introd
Chapter 3
STAT 4360 (PART II)
Chapter 3
3.1
Fall 2016
TS
R Objects
Introduction of R Objects
The entities R operates on are technically known as objects. Examples are vectors of numeric
(real) or complex values, vectors of logical values and vectors of ch
Step 1: Install Oracle VirtualBox and download the SAS University Edition vApp.
a. Download Oracle VirtualBox version 4.3.12 from the link below. Important: make sure you
download version 4.3.12. Also, make sure you download the appropriate version for yo
GEORGIA ASSET CERTIFICATION
Complete only one form per household; include assets of children.
Household Name: Chang
Development Name: Sugarloaf Trails Apartments
City: Duluth
1. Choose only ONE response:
a
I(we) do not have any family assets (as defined i
STAT 4360
Assignment 4
(Due 5:00pm, Monday, October 10, 2016)
Instruction:
Type your answers in a word .doc file and convert it into PDF file. You also need to
provide relevant SAS codes for each question in one .SAS file. Make sure your files
named as ST
Schedule for Lab 307, Statistics Building
Fall 2016
Sun. Time
Period
M,W,F Time
T,Th Time
Sunday
Monday
Tuesday
8/5/2016
Wednesday
Thursday
Friday
1
8:00-8:50 AM
8:00-9:15 AM
Closed
Open
Open
Open
Open
Open
2
9:05-9:55 AM 9:30-10:45 AM
Closed
4/6240 (Wern
Chapter 5
STAT 4360 (PART II)
Chapter 5
5.1
Fall 2016
R Graphics
Bar Chart
A bar chart draws a bar with a height proportional to the count in the table. The height
could be given by the frequency, or the proportion. The graph will look the same, but the
s