running multiple linear regression


/ Published in: R
Save to your folder(s)



Copy this code and paste it in your HTML
  1. mydata <- read.delim("C:\\path\\to\\file.txt")
  2. fit <- lm(y ~ x1 + x2 + x3, data=mydata)
  3. summary(fit)

URL: http://www.statmethods.net/stats/regression.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.