STAT 457 Sec 1 (10 AM Tuesdays), Sec 2 (11 AM Tuesdays)

Lab computer room MA 306                    Mike O’Lear, Instructor                 m.olear@mso.umt.edu                 ph[cell]:  406-360-1995

Main Announcements:

--This is the page we will always want you to check frequently, for the various lab documents.  Be sure you review the lab (which will be posted by Monday of lab week) before you come to lab Tuesday, so you will know what is coming.  Thanks.

--I should have lab grades sent back to you (within 1 week of submittal) and new lab posted on the web site by end of each weekend

Student Question:  When are lab reports due?  Answer:  normally, they are assigned on lab Tuesday and due before you enter room for next week’s lab class

-- for Lab 4 I listed various R functions and arguments featured in that week, without including the linked help pages for those commands-type ?mean or ?IQR or ?whatever on the R-Console screen in order to have the help page come up for your inspection

--the R output for range() is 2 numbers, the min and the max.  REMEMBER that the range is a single number, not a “from…to” kind of statement.

 

Main Course Documents

syllabus

Installing R Commander in Windows (UM version)

Why Learn R?

R Commander (UM version)

Statistical “Writing”

Extra Credit Projects

 

 

R Commander (default version)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R Documents

R Commander zip file—right click to download onto Desktop

good book

good book

good book

good book

R Module 1

Instructor Notes on R

Univariate graphics

UM R Commander Instruction Guide

Another good book—“R In Action

R Module 2

Most used R functions

kickstartR.pdf

VerzaniR.pdf

usingR.pdf

R Module 3

2 way table example

refmanual.pdf

Rforbiology.pdf

RTinn.pdf

R Module 4

Reading data from .txt

Rnotes.pdf

Rcommands.pdf

 

R Intro

 

 

 

 

R Language

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Labs and Lab Notes           

Lab 1:

 arithmetic1.R

Lab 2:

Lab 3:

Lab 4:

Lab 5:

vector.R

classdata.csv

Baldness.csv

Kentucky_Derby_2007.csv

satisfaction.csv

vectorop.R

marriage_ages.csv

cat2var.R

assets.csv

expense.csv

 

textmessage.csv

 

weight.csv

 

Notes Lab 1

importing data

 

classyear.csv

 

 

ClassData1.csv

 

 

 

 

guess.txt

 

 

 

 

read_data.R

 

 

 

 

 

 

 

 

 

hist()

boxplot()

read.table()

read.csv()

stripchart()

stem()

xtabs()

table()

barplot()

prop.table()

addmargins()

spine() with vcd package

mean()       median()

IQR()         range()

quantile()   summary()

factor()       par()

abline()       density()

lines()

plot()

xlab=       ylab=

main=

function()

return()

as.matrix()

 

 

 

lty=            trim=

names.arg=

prob=

 

============

============

============

============

============

Lab 6:

 

Lab 7:

Lab 8:

Lab 9:

Lab 10:

Lab 4 Post Notes

distributions_1.R

Placing text on graphs

 

exec_pay.csv

Lab 5 Post Notes

dist_sampling_1.R

datalab8.csv

 

salmon_rate.csv

 

 

 

 

 

 

 

 

 

 

sample()

for()         if()

cat()

 

pois()     rep()

curve()     norm()

sample()

 

R Logical Operators

 

============

============

============

============

============

Lab 11:

Lab 12:

Lab 13

Lab 14:

Lab 15:  last lab

Lab 15 correction

Jon’s Bootstrap Lecture Notes

ages.csv

Notes from last week (Lab 121)

airline_stats.csv

postHS.csv

baseball_birth.csv

medstats.csv

tattoo.csv

Jon’s R Bootstrap Code

braking.csv

marriage_age.csc

Chisq help

F help #1

F help #2

zodiac.csv

NOTE:  put p=(1/12,1/2,etc) for all 12 probabilities in chisq.test() command

albatross_catch.csv

insurance.csv

my_marathon.csv

 

Check R Books section for more downloaded books

bootcommand

coefficient of variation example

 

 

 

bootci

covariation.R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Some Useful Scripts and R Functions

arithmetic1.R

 

 

 

 

vector.R

 

 

 

 

vectorop.R

 

 

 

 

xtabs

 

 

 

 

twoway.R

 

 

 

 

hella.csv