Guest User

Untitled

a guest
Nov 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. for ( i in 1:34) {
  2. for( j in 15:51)
  3. y.1 <- y[i : j]
  4. x.1 <- 1:15
  5. y.lm <- lm(y.1 ~ x.1)
  6. alpha[i] <- unname(y.lm$coefficients[2])
  7. }
  8.  
  9. The length of variable (based on 'x.1') is different
Add Comment
Please, Sign In to add comment