You might consider the Predict.Plot and TkPredict functions in the
TeachingDemos package. These help you explore multiple linear
regression models by plotting the "line" relating the response to one
of the predictors at given values of the other predictors. These
lines can be combined in a single
> Specifically my model has one response and two predictors, i.e. it's of the
> form
>
> Y = b_0+b_1*X_1+b_2*X_2
>
> Plotting the regression line for a single predictor model
>
> Y = b_0+b_1*X_1
>
> is simple enough, just call abline() with the coefficients returned by lm().
Single variable
2 matches
Mail list logo