Description Usage Arguments Value Author(s) See Also Examples

Simplify usage of lm by avoiding model notation, drawing plot, drawing regression line, drawing confidence intervals.

1 |

`x` |
The predictor variable |

`y` |
The response variable |

`show.residuals` |
set to TRUE to plot residuals |

`show.ci` |
set to TRUE to plot confidence intervals |

`conf.level` |
if show.ci=TRUE will plot these CI's at this level |

`pred` |
values of the x-variable for prediction |

returns plots and an instance of lm, as though it were called
`lm(y ~ x)`

John Verzani

lm

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.