
title: "Chapter 11"
author: "Fan Wu"
date: "January 23, 2017"
output: html_document

Random sample of 100 births.
Length of gestation in weeks.
Smoking status of mother, 0=nonsmoker, 1=smoker
Birth weight of baby in grams.
CASENO is the case number.
`c
1
Introduction to R Lab 4: Randomized Complete Block and Factorial Designs
1. RCB Designs
We recognize that our design set up is a RCB design. As usual I need to enter my data, but
now my le must contain one row for each response, factor information, and
1
Intro R Lab 1 Hypothesis Tests on Variances
The command var.test can be used to carry out a hypothesis to compare variances of two
samples from Normal populations. First I need the samples to be column vectors. So after
reading in data from a le, or en
1
Introduction to R Lab 2: Testing Variances
To perform an ANOVA I rst need to read in a data set with both a response variable and
a factor variable. Suppose we are interested in 3 types of exercise and their eect on weight.
The data should look as foll
1
Introduction to R Lab 5: Simple Linear Regression Condence Intervals
1. Scatterplots
If I want to obtain a scatterplot for my regression data I can use the function plot(x,y).
Suppose I wanted to regress X=height versus Y=weight. The plot function is
1
Introduction to R Lab 3: Contrasts
We are now interested in testing hypotheses involving 2 or more of our factor levels; this can
be done using Contrasts (see course supplement for more information).
Suppose I have a response variable called resp and

title: "Stat355Lecture 1"
author: "Fan Wu"
date: "January 5, 2017"
output: word_document

# Lecture 1 starts here
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details o

title: "Stat355Lecture 1"
author: "Fan Wu"
date: "January 5, 2016"
output:
pdf_document: default
word_document: default

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more

title: "Stat355Lecture 1"
author: "Fan Wu"
date: "January 5, 2017"
output: word_document

# Lecture 1 starts here
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details o
Statistics 256 — Statistics for Life Sciences II Solutions to
Miscellaneous Problems
1. University of Maryland researchers obtained a random sample of 31
body temperatures with sample mean 368°C and sample standard
deviation 034°C. Construct a 95% CI for