R Prediction on a Linear Regression Model -


i'm sure can done, not sure how! have dataset around 500 rows(csv) , shows footballers match stas(e,g passes, shots on target)etc.i have of salaries(around 10) , i'n trying predict salaries using linear regression equation.

in below, if y salaries, there way on r autopopulate? rest of salaries might based on ten salaries have?

lm(y ~ x1 + x2 +x3)

any appreciated.

this predict function does.

note don't need call predict.lm explicitly. because result of call lm object class "lm", r "knows" use predict.lm when call predict on it.

eg:

lm1 <- lm(y ~ x1 + x2 +x3) y.fitted <- predict(lm1) 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -