Displaying 1 result from an estimated 1 matches for "lm_examplemodel".
2011 Oct 24
1
Using predicted() in R
Dear all,
I am a R user since about 3 weeks now and still struggeling with things that
must be very
easy for you...
This week I am struggling with the function predict()
I want to use this function to get a 95% interval.
I understand that you have to use it in such a way as:
lm_examplemodel<- lm(y~x1 + x2 + x3)
newdata <- data.frame(x1 = ???, x2 = ???, x3 = ???)
predict(lm_examplemodel, newdata, interval = 'confidence')
And here comes my questions. As you maybe already have guessed its about
the questions marks/
the values for the new data frame you have to use.
I re...