STA302H5 Lecture 2: Lecture 2 - 20130909_111242.pdf

41 views38 pages
10 Dec 2013
School
Department
Course
Professor

Document Summary

> 2^3 # two to the power 3. > x x z # no dynamic updating; it"s not a spreadsheet. > y = 1 + 2*x # another way to do assignment. > z 4] # z gets y such that x > 4. > # if you put an array of integers inside the brackets, you get those. > y[7] # there is no seventh element. > pnorm(0) # area less than zero for a standard normal. > dpois(0,lambda=3) # p(y=0) for y ~ poisson(3) > qnorm(0. 975) # z value with p(z qf(0. 975,df1=6,df2=122) # critical value for f, not in any table. > pairs(trees) # can also give it a matrix, in which the columns are variables. Look at the free mini-book an introduction to r by venables et al.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers