gradestv: Simulated data for analyzing the relationship between...

Description Usage Format Details Source Examples

Description

This is a simulated data set to be used to estimate the relationship between number of hours per week students watch TV and the grade they got in a statistics class.

Usage

1

Format

A data frame with 25 observations on the following 2 variables.

tv

Number of hours per week students watch TV.

grades

Grades students got in a statistics class (out of 100).

Details

There are a few potential outliers in this data set. When analyzing the data one should consider how (if at all) these outliers may affect the estimates of correlation coefficient and regression parameters.

Source

Simulated data

Examples

1
2
3
4
5
library(ggplot2)

ggplot(gradestv, aes(x = tv, y = grades)) +
  geom_point() +
  geom_smooth(method = "lm")

tessington/qsci381 documentation built on Sept. 26, 2020, 12:40 p.m.