Packages and settings - R and Python
The core R packages help us with most of the analysis, and we need only the additional package faraway. We first set the path and load the R packages followed by Python essentials:
- Set the working directory: - setwd("MyPath/R/Chapter_06")
- Load the required R package: - library(aplpack) 
- Complete the Python settings, actually Jupyter notebook (also, refer to Chapter 6, Linear Regression Analysis, ipynb):  
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                