Professional Documents
Culture Documents
Exploratory Analysis
Correlations
j
① Fit the Model with lm( ) L
② Test Hypothesis : Check if predictor variables are
vs Ha not all zero
significant
③ If Do Not Reject Ho: Stop Analysis
If Reject Ho: Test B’s individually
Fit the Model
Example: ( Do Not Reject Ho )
as
Hypothesis
are
Example: ( Reject Ho )
ARM
Continue Analysis
A
Dummy Variable Regression ( No Interaction )
• Regression for a Qualitative Predictor
Example
OR
O Summary
Graphical Representation
go
my
Dummy Variable Regression ( Interaction )
Example
OR
Summary
Graphical Representation
Assumptions: Normality and Homoskedasticity
① Extract Residuals
② Extract Fitted Values
③ Graphical Tests
④ Formal Tests
Graphical Tests
Formal Tests
I
Multicollinearity ① Basic Correlation Analysis
② VIF (Variance Inflation Factor)
③ Collinearity Diagnostics
The “olsrr” package is needed for the analysis.
Example :
I
Basic Correlation
VIF
Collineary Diagnostics
Influential Values
Model Selection
① Stepwise Selection
② All possible subsets
③ Dummy Variables
Stepwise Selection
Dummy Variables