Packages and settings – R and Python
We set up the paths and packages to start with. The Python session is available as a Chapter_05_Statistical_Inference.ipynb
file in the Output
folder, Python/Chapter_05
, of the code bundle. The user will try to reproduce the programs using C05.R
and Chapter_05.py
files:
First set the working directory:
setwd("MyPath/R/Chapter_05")
We need
PASWR
andPairedData
packages and hence we load them now:> library(RSADBE) > library(stats4) > library(PASWR) > library(PairedData) > setwd("MyPath/R/Chapter05")
The required packages and path in Python is set up as follows:
The required setup is complete and we now are all set for the action.