BAIT
Forecasting principles and practice

# Forecasting principles and practice - Forecasting...

• Notes
• 2

This preview shows pages 1–2. Sign up to view the full content.

Forecasting: principles and practice otexts.com/fpp time series analysis and its applications: with R examples robert shumway and david stoffer have R and R studio installed --------------------- inclass.R y<- means that y is assigned to something y<-4 y assigned to 4 rm(x,y) get rid of x and y from your memory z<-c(5,9,1,0) a vector with those values c → concatenate 2 things together as long as they are of the same dimension length(z) vector of length 4 sequences are equally spaced seq(8,20,length=6) equally spaced 6 values from 8-20 rep() → repeat to reference to the 2nd element in x → x[2] negative sign in front of it means that you don’t want it

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cbind(x,y) → bind them column wise rbind(x,y) → bind them row wise rbind(z,z) go over this nr means nrow means how many rows to make it go over z<-matrix(c….),nr=2,byrow=T) y%*%x matrix multiplication y*z element multiplication t(z) transpose matrix z solve(x) compute the inverse of x attach(trees) now i’m working with the tree object. ..look at the variables in trees apply(trees,2,mean) apply mean to the tree object by column [ 1 is row, 2 is column] as.characters the function reads the input as characters one by one rnorm(how many, mean, standard deviation...
View Full Document

• Fall '13
• Lin
• Time series analysis, David Stoffer, robert shumway, y*z element multiplication

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern