Skip to main content
Removed thanks
Source Link
Sean Easter
  • 8.9k
  • 2
  • 32
  • 58

Starting from a linear model1 = lm(temp~alt+sdist) i need to develop a prediction model, where new data will come in hand and predictions about temp will be made.

I have tried doing something like this:

model2 = predict.lm(model1, newdata=newdataset)

However, i am not sure this is the right way. What i would like to know here is, if this is the right way to go in order to make prediction about temp. Also i am a bit confused when it comes to the newdataset. Which values should be filled in etc.?

Any help is welcome.

Starting from a linear model1 = lm(temp~alt+sdist) i need to develop a prediction model, where new data will come in hand and predictions about temp will be made.

I have tried doing something like this:

model2 = predict.lm(model1, newdata=newdataset)

However, i am not sure this is the right way. What i would like to know here is, if this is the right way to go in order to make prediction about temp. Also i am a bit confused when it comes to the newdataset. Which values should be filled in etc.?

Any help is welcome.

Starting from a linear model1 = lm(temp~alt+sdist) i need to develop a prediction model, where new data will come in hand and predictions about temp will be made.

I have tried doing something like this:

model2 = predict.lm(model1, newdata=newdataset)

However, i am not sure this is the right way. What i would like to know here is, if this is the right way to go in order to make prediction about temp. Also i am a bit confused when it comes to the newdataset. Which values should be filled in etc.?

Source Link
anon
anon

R: multiple linear regression model and prediction model

Starting from a linear model1 = lm(temp~alt+sdist) i need to develop a prediction model, where new data will come in hand and predictions about temp will be made.

I have tried doing something like this:

model2 = predict.lm(model1, newdata=newdataset)

However, i am not sure this is the right way. What i would like to know here is, if this is the right way to go in order to make prediction about temp. Also i am a bit confused when it comes to the newdataset. Which values should be filled in etc.?

Any help is welcome.