Model fit, residuals, and prediction

Report 3 Downloads 74 Views
DataCamp

Multiple and Logistic Regression

MULTIPLE AND LOGISTIC REGRESSION

Model fit, residuals, and prediction Ben Baumer Instructor

DataCamp

Multiple and Logistic Regression

DataCamp

Multiple and Logistic Regression

Model Fit Recall: R2 = 1 −

SSE SST

SSE get smaller ⇒ R 2 increases As p (number of explanatory variables) increases... Solution: R2adj = 1 −

SSE SST



n−1 n−p−1

DataCamp

Fitted values # returns a vector predict(mod) # returns a data.frame augment(mod)

Multiple and Logistic Regression

DataCamp

Multiple and Logistic Regression

DataCamp

Predictions new_obs