# Simple Linear Regression

Example Data | 244 | 238 | 1 |

Help | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

## Fitting Linear Models## Description
## Usagelm(formula, data, subset, weights, na.action, method = "qr", model = TRUE, x = FALSE, y = FALSE, qr = TRUE, singular.ok = TRUE, contrasts = NULL, offset, ...) ## Arguments
## DetailsModels for If the formula includes an If See A formula has an implied intercept term. To remove this use either
Non-
All of ## Value
The functions An object of class
In addition, non-null fits will have components ## Using time seriesConsiderable care is needed when using Unless Even if the time series attributes are retained, they are not used to
line up series, so that the time shift of a lagged or differenced
regressor would be ignored. It is good practice to prepare a
## NoteOffsets specified by ## Author(s)The design was inspired by the S function of the same name described in Chambers (1992). The implementation of model formula by Ross Ihaka was based on Wilkinson & Rogers (1973). ## ReferencesChambers, J. M. (1992)
Wilkinson, G. N. and Rogers, C. E. (1973)
Symbolic descriptions of factorial models for analysis of variance.
## Examplesrequire(graphics) ## Annette Dobson (1990) "An Introduction to Generalized Linear Models". ## Page 9: Plant Weight Data. ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group <- gl(2, 10, 20, labels = c("Ctl","Trt")) weight <- c(ctl, trt) lm.D9 <- lm(weight ~ group) lm.D90 <- lm(weight ~ group - 1) # omitting intercept anova(lm.D9) summary(lm.D90) opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0)) plot(lm.D9, las = 1) # Residuals, Fitted, ... par(opar) ### less simple examples in "See Also" above |

R Output | Dataset Referenced | Date |
---|---|---|

Simple Linear Regression | Example Data | Mar 18, 2017 |

Simple Linear Regression | Example Data | Mar 18, 2017 |

Simple Linear Regression | Example Data | Mar 18, 2017 |

Simple Linear Regression | Example Data | Mar 18, 2017 |

Simple Linear Regression | Example Data | Mar 18, 2017 |

Recent Queries | App/Dataset | By | Date |
---|---|---|---|

Picostat Output - Simple Linear Regression | R Dataset / Package datasets / esoph | hyi2 | October 29, 2020 - 5:44 AM |

Picostat Output - Visual Summaries | R Dataset / Package datasets / esoph | hyi2 | October 29, 2020 - 5:42 AM |

Picostat Output - Simple Linear Regression | R Dataset / Package datasets / esoph | hyi2 | October 29, 2020 - 5:42 AM |

Picostat Output - Numerical Summaries | R Dataset / Package datasets / quakes | wicetram | October 24, 2020 - 3:20 PM |

Picostat Output - Visual Summaries | R Dataset / Package datasets / quakes | wicetram | October 24, 2020 - 3:17 PM |

#### Pagination

Title | Authored on | Content type |
---|---|---|

R Dataset / Package Stat2Data / Sparrows | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package gap / aldh2 | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package boot / nuclear | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package DAAG / nsw74psidA | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package lme4 / InstEval | March 9, 2018 - 1:06 PM | Dataset |