days <- c(91,105,106,108,88,91,58,82,81,65,61,48,61,43,33,36)
ind <- c(16.7,17.1,18.2,18.1,17.2,18.2,16,17.2,18,17.2,16.9,17.1,18.2,17.3,17.5,16.6)
plot(ind,days, main = "Scatter plot of Days to index ")
model <- lm(days~ind)
model
## 
## Call:
## lm(formula = days ~ ind)
## 
## Coefficients:
## (Intercept)          ind  
##      -193.0         15.3
plot(ind,days, main = "Scatter plot of Days to index ")
abline(model)
 ## Q4) Model Adequacy
plot(model)
summary(model)
## 
## Call:
## lm(formula = days ~ ind)
## 
## Residuals:
##    Min     1Q Median     3Q    Max 
## -41.70 -21.54   2.12  18.56  36.42 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)
## (Intercept) -192.984    163.503  -1.180    0.258
## ind           15.296      9.421   1.624    0.127
## 
## Residual standard error: 23.79 on 14 degrees of freedom
## Multiple R-squared:  0.1585, Adjusted R-squared:  0.09835 
## F-statistic: 2.636 on 1 and 14 DF,  p-value: 0.1267