Simple Regression Model: Defines relationship between a dependent variable, and a single independent predictor variable. The equation for this relationship:
WC Hoh
Retired
Simple Regression Model: Defines relationship between a dependent variable, and a single independent predictor variable. The equation for this relationship:
## Warning: package 'UsingR' was built under R version 3.2.5
## Loading required package: MASS
## Loading required package: HistData
## Warning: package 'HistData' was built under R version 3.2.5
## Loading required package: Hmisc
## Warning: package 'Hmisc' was built under R version 3.2.5
## Loading required package: lattice
## Loading required package: survival
## Warning: package 'survival' was built under R version 3.2.5
## Loading required package: Formula
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 3.2.5
##
## Attaching package: 'Hmisc'
## The following objects are masked from 'package:base':
##
## format.pval, round.POSIXt, trunc.POSIXt, units
##
## Attaching package: 'UsingR'
## The following object is masked from 'package:survival':
##
## cancer
## (Intercept) carat
## -259.6259 3721.0249

price = coef(fit)[1] + coef(fit)[2]*0.2
price # In Singapore dollars
## (Intercept)
## 484.5791