Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. y <- rnorm(10)
  2. w <- c(0.05, 0.15, 0.02, 0.08, 0.2, 0.04, 0.06, 0.1, 0.18, 0.12)
  3. x1 <- rnorm(10)
  4. x2 <- rnorm(10)
  5. x3 <- rnorm(10)
  6. data <- cbind(y, x1, x2, x3, w)
  7. lm(y ~ x1 + x2 + x3, data = data, weigths = w)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement