Guest User

Untitled

a guest
Dec 11th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.18 KB | None | 0 0
  1. N = 200
  2. df = data.frame(x = 1:N, y = 2+1:N*3 + rnorm(N))
  3. lm(y ~ I(x+2) + 0, df)
  4. # Call:
  5. # lm(formula = y ~ I(x + 2) + 0, data = df)
  6. #
  7. # Coefficients:
  8. # I(x + 2)  
  9. #     2.97
Advertisement
Add Comment
Please, Sign In to add comment