diff --git a/routines/econometrics_demo.openbb b/routines/econometrics_demo.openbb
new file mode 100644
index 00000000000..ce9c33b90ee
--- /dev/null
+++ b/routines/econometrics_demo.openbb
@@ -0,0 +1,19 @@
+# Go into the econometrics context
+econometrics
+
+# Load the wage_panel dataset and include an alias
+load wage_panel -a wp
+
+# Set the MultiIndex, allowing for Panel regressions to be performed
+index wp -i nr,year
+
+# Change the type of the year column so it can be included as time effects within the regressions
+type wp.year -f category
+
+# Perform a Pooled OLS, Random Effects and Fixed Effects estimation
+panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year
+panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -r re
+panel -d wp.lwage -i wp.expersq,wp.union,wp.married,wp.year -r fe
+
+# Compare the results obtained from these regressions
+compare
\ No newline at end of file
diff --git a/website/content/terminal/econometrics/_index.md b/website/content/terminal/econometrics/_index.md
index 3012b04c2cd..2373a1ee004 100644
--- a/website/content/terminal/econometrics/_index.md
+++ b/website/content/terminal/econometrics/_index.md
@@ -1,12 +1,677 @@
---
+title: Introduction to Econometrics
+keywords: "econometrics, statistics, regression, panel data, time series, research, thesis, university"
+excerpt: "The Introduction to Econometrics explains how to use the menu"
geekdocCollapseSection: true
---
-
The Econometrics menu's purpose is to provide the user the ability to perform statistical research on custom datasets.
The menu allows the user to load in his/her own dataset(s), modify the data by (for example) adding columns or setting
-indices, apply statistical tests (e.g. Breusch-Godfrey autocorrelation tests) as well as OLS regressions and Panel
-regressions (e.g. Random Effects and Fixed Effects)
+indices, apply statistical tests (e.g. Breusch-Godfrey autocorrelation tests)
+as well as OLS regressions and Panel regressions (e.g. Random Effects and Fixed Effects)
-**Available commands**
-{{< toc-tree >}}
+{{< toc >}}
+## Accessing the Econometrics menu
+
+The Econometrics menu is called upon by typing `econometrics` which opens the following menu:
+
+
+
+You have the ability to load in your own custom datasets but there is also the option to use example datasets which are used within this guide as well. These datasets can be
+found by using the load command and typing `load --examples`. See below:
+````
+2022 Jun 20, 04:33 (๐ฆ) /econometrics/ $ load --examples
+
+ Examples from Statsmodels
+โโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+โ file name โ description โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ anes96 โ American National Election Survey 1996 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ cancer โ Breast Cancer Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ ccard โ Bill Greeneโs credit scoring data. โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ cancer_china โ Smoking and lung cancer in eight cities in China. โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ co2 โ Mauna Loa Weekly Atmospheric CO2 Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ committee โ First 100 days of the US House of Representatives 1995 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ copper โ World Copper Market 1951-1975 Dataset โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ cpunish โ US Capital Punishment dataset. โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ danish_data โ Danish Money Demand Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ elnino โ El Nino - Sea Surface Temperatures โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ engel โ Engel (1857) food expenditure data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ fair โ Affairs dataset โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ fertility โ World Bank Fertility Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ grunfeld โ Grunfeld (1950) Investment Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ heart โ Transplant Survival Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ interest_inflation โ (West) German interest and inflation rate 1972-1998 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ longley โ Longley dataset โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ macrodata โ United States Macroeconomic data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ modechoice โ Travel Mode Choice โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ nile โ Nile River flows at Ashwan 1871-1970 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ randhie โ RAND Health Insurance Experiment Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ scotland โ Taxation Powers Vote for the Scottish Parliament 1997 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ spector โ Spector and Mazzeo (1980) - Program Effectiveness Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ stackloss โ Stack loss data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ star98 โ Star98 Educational Dataset โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ statecrim โ Statewide Crime Data 2009 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ strikes โ U.S. Strike Duration Data โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ sunspots โ Yearly sunspots data 1700-2008 โ
+โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
+โ wage_panel โ Veila and M. Verbeek (1998): Whose Wages Do Unions Raise? โ
+โโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
+````
+
+As there is a clear difference between time series data, which is 1-dimensional data (e.g. a single company over time)
+and panel data, which is 2-dimensional data (e.g. multiple companies over time) both use-cases are provided.
+
+## Working with Time Series data
+To demonstrate the usage of the menu, the longley
+dataset is loaded in. This can be done by `load longley` as shown below:
+
+```
+2022 Jun 20, 04:36 (๐ฆ) /econometrics/ $ load longley
+
+2022 Jun 20, 04:38 (๐ฆ) /econometrics/ $ ?
+โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Econometrics โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
+โ โ
+โ Looking for data in: โ
+โ โ
+โ /Users/jeroenbouma/Documents/OpenBB Terminal/custom_imports โ
+โ โ
+โ load load a dataset (also works with StatsModels datasets) โ
+โ remove remove one of the loaded datasets โ
+โ โ
+โ Loaded files and data columns: โ
+โ longley : totemp, gnpdefl, gnp, unemp, armed, pop, year โ
+โ โ
+โ Exploration: โ
+โ show show a portion of a loaded dataset โ
+โ plot plot data from a dataset โ
+โ type change types of the columns or display their types โ
+โ desc show descriptive statistics of a dataset โ
+โ index set (multi) index based on columns โ
+โ clean clean a dataset by filling or dropping NaNs โ
+โ add Add columns to dataset with option to use formulas โ
+โ delete Delete columns from dataset โ
+โ combine Combine columns from different datasets โ
+โ rename Rename column from dataset โ
+โ export export a processed dataset โ
+โ Tests: โ
+โ norm perform normality tests on a column of a dataset โ
+โ root perform unitroot tests (ADF & KPSS) on a column of a dataset โ
+โ granger Granger causality tests on two columns โ
+โ coint co-integration test on a multitude of columns โ
+โ Regression: โ
+โ ols fit a (multi) linear regression model โ
+โ panel estimate model based on various regression techniques โ
+โ compare compare results of all estimated models โ
+โ Regression Tests: โ
+โ dwat Durbin-Watson autocorrelation test on the residuals of the regression โ
+โ bgod Breusch-Godfrey autocorrelation tests with lags on the residuals of the regression โ
+โ bpag Breusch-Pagan heteroscedasticity test on the residuals of the regression โ
+โ โ
+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ OpenBB Terminal v1.3.0 (https://openbb.co) โโฏ
+```
+
+Beneath `Loaded files and data columns` you can find the longley dataset and its columns. You can create an alias for this dataset with the `-a` argument as shown within the ols command.
+To see a portion of this dataset, the show command can be used as shown below:
+
+```
+2022 Jun 20, 04:38 (๐ฆ) /econometrics/ $ show
+
+ Dataset longley | Showing 10 of 16 rows
+โโโโโณโโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโ
+โ โ totemp โ gnpdefl โ gnp โ unemp โ armed โ pop โ year โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ 0 โ 60323.00 โ 83.00 โ 234289.00 โ 2356.00 โ 1590.00 โ 107608.00 โ 1947.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 1 โ 61122.00 โ 88.50 โ 259426.00 โ 2325.00 โ 1456.00 โ 108632.00 โ 1948.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 2 โ 60171.00 โ 88.20 โ 258054.00 โ 3682.00 โ 1616.00 โ 109773.00 โ 1949.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 3 โ 61187.00 โ 89.50 โ 284599.00 โ 3351.00 โ 1650.00 โ 110929.00 โ 1950.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 4 โ 63221.00 โ 96.20 โ 328975.00 โ 2099.00 โ 3099.00 โ 112075.00 โ 1951.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 5 โ 63639.00 โ 98.10 โ 346999.00 โ 1932.00 โ 3594.00 โ 113270.00 โ 1952.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 6 โ 64989.00 โ 99.00 โ 365385.00 โ 1870.00 โ 3547.00 โ 115094.00 โ 1953.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 7 โ 63761.00 โ 100.00 โ 363112.00 โ 3578.00 โ 3350.00 โ 116219.00 โ 1954.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 8 โ 66019.00 โ 101.20 โ 397469.00 โ 2904.00 โ 3048.00 โ 117388.00 โ 1955.00 โ
+โโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 9 โ 67857.00 โ 104.60 โ 419180.00 โ 2822.00 โ 2857.00 โ 118734.00 โ 1956.00 โ
+โโโโโดโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโ
+```
+
+This can be extended by also showing the descriptive statistics, this can be done with the
+desc command and
+including the `longley` dataset. This command also allows descriptive statistics for individual columns to be displayed (e.g. `desc longley.totemp`)
+
+```
+2022 Jun 20, 04:44 (๐ฆ) /econometrics/ $ desc longley
+
+ Statistics for dataset: 'longley'
+โโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโ
+โ โ totemp โ gnpdefl โ gnp โ unemp โ armed โ pop โ year โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ count โ 16.00 โ 16.00 โ 16.00 โ 16.00 โ 16.00 โ 16.00 โ 16.00 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ mean โ 65317.00 โ 101.68 โ 387698.44 โ 3193.31 โ 2606.69 โ 117424.00 โ 1954.50 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ std โ 3511.97 โ 10.79 โ 99394.94 โ 934.46 โ 695.92 โ 6956.10 โ 4.76 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ min โ 60171.00 โ 83.00 โ 234289.00 โ 1870.00 โ 1456.00 โ 107608.00 โ 1947.00 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 25% โ 62712.50 โ 94.53 โ 317881.00 โ 2348.25 โ 2298.00 โ 111788.50 โ 1950.75 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 50% โ 65504.00 โ 100.60 โ 381427.00 โ 3143.50 โ 2717.50 โ 116803.50 โ 1954.50 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ 75% โ 68290.50 โ 111.25 โ 454085.50 โ 3842.50 โ 3060.75 โ 122304.00 โ 1958.25 โ
+โโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโค
+โ max โ 70551.00 โ 116.90 โ 554894.00 โ 4806.00 โ 3594.00 โ 130081.00 โ 1962.00 โ
+โโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโ
+```
+
+It is possible to check for a variety of assumptions, e.g. normality, unit root, granger and co-integration. The commands `norm` and `root` are shown below.
+Note that due to the small size of the dataset, many of these tests are not statistically significant.
+
+```
+2022 Jun 20, 04:49 (๐ฆ) /econometrics/ $ norm longley.gnp
+
+ Normality test from dataset 'longley' of 'gnp'
+โโโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโ
+โ โ Kurtosis โ Skewness โ Jarque-Bera โ Shapiro-Wilk โ Kolmogorov-Smirnov โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ Statistic โ -1.19 โ 0.05 โ 0.84 โ 0.96 โ 1.00 โ
+โโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโค
+โ p-value โ 0.23 โ 0.96 โ 0.66 โ 0.71 โ 0.00 โ
+โโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโ
+
+
+2022 Jun 20, 04:49 (๐ฆ) /econometrics/ $ root longley.pop
+
+Unitroot from dataset 'longley of 'pop'
+โโโโโโโโโโโโโโโโโโณโโโโโโโโโณโโโโโโโ
+โ โ ADF โ KPSS โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ Test Statistic โ 2.35 โ 0.64 โ
+โโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโค
+โ P-Value โ 1.00 โ 0.02 โ
+โโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโค
+โ NLags โ 6.00 โ 2.00 โ
+โโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโค
+โ Nobs โ 9.00 โ 0.00 โ
+โโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโค
+โ ICBest โ 113.05 โ 0.00 โ
+โโโโโโโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโ
+```
+
+The longley dataset is known for the ability to create an OLS regression that results in a
+R-squared of 1.0 due to the fact that
+the US macroeconomic variables are known to be highly collinear. See the following regression performed with the
+ols command:
+
+```
+2022 Jun 20, 04:56 (๐ฆ) /econometrics/ $ ols -d longley.totemp -i longley.gnpdefl,longley.gnp,longley.unemp,longley.armed,longley.pop,longley.year
+ OLS Regression Results
+=======================================================================================
+Dep. Variable: longley.totemp R-squared (uncentered): 1.000
+Model: OLS Adj. R-squared (uncentered): 1.000
+Method: Least Squares F-statistic: 5.052e+04
+Date: Mon, 20 Jun 2022 Prob (F-statistic): 8.20e-22
+Time: 10:56:10 Log-Likelihood: -117.56
+No. Observations: 16 AIC: 247.1
+Df Residuals: 10 BIC: 251.8
+Df Model: 6
+Covariance Type: nonrobust
+===================================================================================
+ coef std err t P>|t| [0.025 0.975]
+-----------------------------------------------------------------------------------
+longley.gnpdefl -52.9936 129.545 -0.409 0.691 -341.638 235.650
+longley.gnp 0.0711 0.030 2.356 0.040 0.004 0.138
+longley.unemp -0.4235 0.418 -1.014 0.335 -1.354 0.507
+longley.armed -0.5726 0.279 -2.052 0.067 -1.194 0.049
+longley.pop -0.4142 0.321 -1.289 0.226 -1.130 0.302
+longley.year 48.4179 17.689 2.737 0.021 9.003 87.832
+==============================================================================
+Omnibus: 1.443 Durbin-Watson: 1.277
+Prob(Omnibus): 0.486 Jarque-Bera (JB): 0.605
+Skew: 0.476 Prob(JB): 0.739
+Kurtosis: 3.031 Cond. No. 4.56e+05
+==============================================================================
+
+Notes:
+[1] Rยฒ is computed without centering (uncentered) since the model does not contain a constant.
+[2] Standard Errors assume that the covariance matrix of the errors is correctly specified.
+[3] The condition number is large, 4.56e+05. This might indicate that there are
+strong multicollinearity or other numerical problems.
+
+Warnings:
+kurtosistest only valid for n>=20 ... continuing anyway, n=16
+```
+
+The argument `-d` refers to the dependent variable, in this example `longley.totemp`, and the argument `-i` refers to the
+independent variables, in this example this is `longley.gnpdefl,longley.gnp,longley.unemp,longley.armed,longley.pop,longley.year`.
+
+After running the regression estimation, it is possible to perform tests on the residuals of the model. E.g. for autocorrelation and
+heteroscedasity as shown below with the bgod and
+bpag commands.
+
+```
+2022 Jun 20, 05:00 (๐ฆ) /econometrics/ $ bgod
+
+Breusch-Godfrey autocorrelation test [Lags: 3]
+โโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโ
+โ โ Breusch-Godfrey โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ LM-stat โ 10.35 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
+โ p-value โ 0.02 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
+โ f-stat โ 0.10 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโค
+โ fp-value โ 0.96 โ
+โโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ
+
+The result 0.02 indicates no existence of autocorrelation.
+
+2022 Jun 20, 05:00 (๐ฆ) /econometrics/ $ bpag
+
+Breusch-Pagan heteroscedasticity test
+โโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
+โ โ Breusch-Pagan โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ lm-stat โ 7.90 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
+โ p-value โ 0.16 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
+โ f-stat โ 1.63 โ
+โโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
+โ fp-value โ 0.24 โ
+โโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
+
+The result 0.16 indicates the existence of heteroscedasticity. Consider taking the log or a rate for the dependent variable.
+```
+
+## Working with Panel data
+Within the examples of `load --examples` there is one panel dataset available named `wage_panel`. This is a dataset from the
+paper by Vella and M. Verbeek (1998), โWhose Wages Do Unions Raise? A Dynamic Model of Unionism and Wage Rate Determination for Young Men,โ
+Journal of Applied Econometrics 13, 163-183. This is a well-known dataset also used within Chapter 14 of Introduction to Econometrics by Jeffrey Wooldridge.
+
+Here, the dataset is loaded in and an alias is used by using the `-a` argument. The available columns are displayed under `Loaded files and data columns`.
+
+```
+2022 Jun 20, 05:13 (๐ฆ) /econometrics/ $ load wage_panel -a wp
+
+2022 Jun 20, 05:13 (๐ฆ) /econometrics/ $ ?
+โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Econometrics โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
+โ โ
+โ Looking for data in: โ
+โ โ
+โ /Users/jeroenbouma/Documents/OpenBB Terminal/custom_imports โ
+โ โ
+โ load load a dataset (also works with StatsModels datasets) โ
+โ remove remove one of the loaded datasets โ
+โ โ
+โ Loaded files and data columns: โ
+โ wp : nr, year, black, exper, hisp, hours, married, educ, union, lwage, expersq, occupation โ
+โ โ
+โ Exploration: โ
+โ show show a portion of a loaded dataset โ
+โ plot plot data from a dataset โ
+โ type change types of the columns or display their types โ
+โ desc show descriptive statistics of a dataset โ
+โ index set (multi) index based on columns โ
+โ clean clean a dataset by filling or dropping NaNs โ
+โ add Add columns to dataset with option to use formulas โ
+โ delete Delete columns from dataset โ
+โ combine Combine columns from different datasets โ
+โ rename Rename column from dataset โ
+โ export export a processed dataset โ
+โ Tests: โ
+โ norm perform normality tests on a column of a dataset โ
+โ root perform unitroot tests (ADF & KPSS) on a column of a dataset โ
+โ granger Granger causality tests on two columns โ
+โ coint co-integration test on a multitude of columns โ
+โ Regression: โ
+โ ols fit a (multi) linear regression model โ
+โ panel estimate model based on various regression techniques โ
+โ compare compare results of all estimated models โ
+โ Regression Tests: โ
+โ dwat Durbin-Watson autocorrelation test on the residuals of the regression โ
+โ bgod Breusch-Godfrey autocorrelation tests with lags on the residuals of the regression โ
+โ bpag Breusch-Pagan heteroscedasticity test on the residuals of the regression โ
+โ โ
+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ OpenBB Terminal v1.3.0 (https://openbb.co) โโฏ
+```
+
+To run panel regressions with panel it is important to define both _entity_ (e.g. company) and _time_ (e.g. year). Trying to
+run the `panel` command would right now result in the following:
+```
+2022 Jun 20, 05:17 (๐ฆ) /econometrics/ $ panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year
+The column 'lwage' from the dataset 'wp' is not a MultiIndex. Make sure you set the index correctly with the index (e.g. index wp -i lwage,nr) command where the first level is the entity (e.g. Tesla Inc.) and the second level the date (e.g. 2021-03-31)
+```
+
+To see the effect of defining a `MultiIndex`, first a portion of the data is shown with the show command as seen below:
+
+```
+2022 Jun 20, 05:22 (๐ฆ) /econometrics/ $ show
+
+ Dataset wp | Showing 10 of 4360 rows
+โโโโโณโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโณโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโโ
+โ โ nr โ year โ black โ exper โ hisp โ hours โ married โ educ โ union โ lwage โ expersq โ occupation โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ 0 โ 13.00 โ 1980.00 โ 0.00 โ 1.00 โ 0.00 โ 2672.00 โ 0.00 โ 14.00 โ 0.00 โ 1.20 โ 1.00 โ 9.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 1 โ 13.00 โ 1981.00 โ 0.00 โ 2.00 โ 0.00 โ 2320.00 โ 0.00 โ 14.00 โ 1.00 โ 1.85 โ 4.00 โ 9.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 2 โ 13.00 โ 1982.00 โ 0.00 โ 3.00 โ 0.00 โ 2940.00 โ 0.00 โ 14.00 โ 0.00 โ 1.34 โ 9.00 โ 9.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 3 โ 13.00 โ 1983.00 โ 0.00 โ 4.00 โ 0.00 โ 2960.00 โ 0.00 โ 14.00 โ 0.00 โ 1.43 โ 16.00 โ 9.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 4 โ 13.00 โ 1984.00 โ 0.00 โ 5.00 โ 0.00 โ 3071.00 โ 0.00 โ 14.00 โ 0.00 โ 1.57 โ 25.00 โ 5.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 5 โ 13.00 โ 1985.00 โ 0.00 โ 6.00 โ 0.00 โ 2864.00 โ 0.00 โ 14.00 โ 0.00 โ 1.70 โ 36.00 โ 2.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 6 โ 13.00 โ 1986.00 โ 0.00 โ 7.00 โ 0.00 โ 2994.00 โ 0.00 โ 14.00 โ 0.00 โ -0.72 โ 49.00 โ 2.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 7 โ 13.00 โ 1987.00 โ 0.00 โ 8.00 โ 0.00 โ 2640.00 โ 0.00 โ 14.00 โ 0.00 โ 1.67 โ 64.00 โ 2.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 8 โ 17.00 โ 1980.00 โ 0.00 โ 4.00 โ 0.00 โ 2484.00 โ 0.00 โ 13.00 โ 0.00 โ 1.68 โ 16.00 โ 2.00 โ
+โโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ 9 โ 17.00 โ 1981.00 โ 0.00 โ 5.00 โ 0.00 โ 2804.00 โ 0.00 โ 13.00 โ 0.00 โ 1.52 โ 25.00 โ 2.00 โ
+โโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโ
+```
+
+Within this dataset the `nr` and `year` columns define the _entity_ and _time_. To allow panel regression estimations, it is important that this is
+defined accordingly with the index command. This can be done
+with the following (and showing the changed dataset afterwards):
+
+```
+2022 Jun 20, 05:22 (๐ฆ) /econometrics/ $ index wp -i nr,year
+Successfully updated 'wp' index to be 'nr, year'
+
+2022 Jun 20, 05:27 (๐ฆ) /econometrics/ $ show
+
+ Dataset wp | Showing 10 of 4360 rows
+โโโโโโโโโโโโโโณโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโณโโโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโโณโโโโโโโโโโณโโโโโโโโโโโโโ
+โ โ nr โ year โ black โ exper โ hisp โ hours โ married โ educ โ union โ lwage โ expersq โ occupation โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ (13, 1980) โ 13.00 โ 1980.00 โ 0.00 โ 1.00 โ 0.00 โ 2672.00 โ 0.00 โ 14.00 โ 0.00 โ 1.20 โ 1.00 โ 9.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1981) โ 13.00 โ 1981.00 โ 0.00 โ 2.00 โ 0.00 โ 2320.00 โ 0.00 โ 14.00 โ 1.00 โ 1.85 โ 4.00 โ 9.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1982) โ 13.00 โ 1982.00 โ 0.00 โ 3.00 โ 0.00 โ 2940.00 โ 0.00 โ 14.00 โ 0.00 โ 1.34 โ 9.00 โ 9.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1983) โ 13.00 โ 1983.00 โ 0.00 โ 4.00 โ 0.00 โ 2960.00 โ 0.00 โ 14.00 โ 0.00 โ 1.43 โ 16.00 โ 9.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1984) โ 13.00 โ 1984.00 โ 0.00 โ 5.00 โ 0.00 โ 3071.00 โ 0.00 โ 14.00 โ 0.00 โ 1.57 โ 25.00 โ 5.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1985) โ 13.00 โ 1985.00 โ 0.00 โ 6.00 โ 0.00 โ 2864.00 โ 0.00 โ 14.00 โ 0.00 โ 1.70 โ 36.00 โ 2.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1986) โ 13.00 โ 1986.00 โ 0.00 โ 7.00 โ 0.00 โ 2994.00 โ 0.00 โ 14.00 โ 0.00 โ -0.72 โ 49.00 โ 2.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (13, 1987) โ 13.00 โ 1987.00 โ 0.00 โ 8.00 โ 0.00 โ 2640.00 โ 0.00 โ 14.00 โ 0.00 โ 1.67 โ 64.00 โ 2.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (17, 1980) โ 17.00 โ 1980.00 โ 0.00 โ 4.00 โ 0.00 โ 2484.00 โ 0.00 โ 13.00 โ 0.00 โ 1.68 โ 16.00 โ 2.00 โ
+โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโผโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโค
+โ (17, 1981) โ 17.00 โ 1981.00 โ 0.00 โ 5.00 โ 0.00 โ 2804.00 โ 0.00 โ 13.00 โ 0.00 โ 1.52 โ 25.00 โ 2.00 โ
+โโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโดโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโ
+```
+
+The columns `nr` and `year` still exists within the dataset and could have been dropped with the `-d` argument if desired. However, in this case the `year` column is relevant for
+generating time effects in Pooled OLS, Fixed Effects and Random Effects estimations. To be able to do this, the type of
+the year column needs to be changed accordingly. The type of the columns can be displayed with the type command as follows:
+
+```
+2022 Jun 20, 05:27 (๐ฆ) /econometrics/ $ type wp
+
+ wp
+โโโโโโโโโโโโโโณโโโโโโโโโโ
+โ column โ dtype โ
+โกโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ nr โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ year โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ black โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ exper โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ hisp โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ hours โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ married โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ educ โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ union โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ lwage โ float64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ expersq โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโค
+โ occupation โ int64 โ
+โโโโโโโโโโโโโโดโโโโโโโโโโ
+```
+
+The dtype `int64` refers to numbers without decimals (e.g. 1, 2, 3) while the dtype `float64` refers to numbers _with_ decimals (e.g. 1.5, 10.23, 0.01).
+There are a few options within the `type` command:
+- `int`: refers to integers, the same as `int64`.
+- `float`: refers to floats, the same as `float64`.
+- `str`: refers to words, e.g. 'New York'.
+- `bool`: refers to booleans, these are either `True` or `False`, commonly depicted as 1 or 0 respectively and often also referred to as dummy variables.
+- `category`: refers to categorical data, usually a limited selection of variables e.g. a list of countries or years.
+- `date`: refers to dates and converts the relevant column to dates.
+
+For the panel regressions, it can be beneficial to see time effects from `year`. Therefore, the type of the `year` column should be altered to `category`.
+This can be done with the following command:
+
+```
+2022 Jun 20, 05:33 (๐ฆ) /econometrics/ $ type wp.year -f category
+Update 'wp.year' with type 'category'
+
+2022 Jun 20, 05:40 (๐ฆ) /econometrics/ $ type
+
+ wp
+โโโโโโโโโโโโโโณโโโโโโโโโโโ
+โ column โ dtype โ
+โกโโโโโโโโโโโโโโโโโโโโโโโโฉ
+โ nr โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ year โ category โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ black โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ exper โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ hisp โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ hours โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ married โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ educ โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ union โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ lwage โ float64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ expersq โ int64 โ
+โโโโโโโโโโโโโโผโโโโโโโโโโโค
+โ occupation โ int64 โ
+โโโโโโโโโโโโโโดโโโโโโโโโโโ
+```
+
+The dataset is now properly configured to allow for proper panel regressions. This can be done with the panel command.
+On the panel page all regressions are performed that are available within the OpenBB Terminal. This can be either:
+- `-r pols` (Pooled OLS)
+- `-r re` (Random Effects)
+- `-r bols` (Between OLS)
+- `-r fe` (Fixed Effects)
+- `-r fdols` (First Difference OLS).
+
+As an example, a **Random Effects** regression is performed. Here, the column after the `-d` argument refers to the dependent variable and the columns after the `-i` argument refer to the independent variables.
+
+```
+2022 Jun 20, 05:51 (๐ฆ) /econometrics/ $ panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -r re
+
+
+ RandomEffects Estimation Summary
+================================================================================
+Dep. Variable: wp.lwage R-squared: 0.1806
+Estimator: RandomEffects R-squared (Between): 0.1853
+No. Observations: 4360 R-squared (Within): 0.1799
+Date: Mon, Jun 20 2022 R-squared (Overall): 0.1828
+Time: 11:52:47 Log-likelihood -1622.5
+Cov. Estimator: Unadjusted
+ F-statistic: 68.409
+Entities: 545 P-value 0.0000
+Avg Obs: 8.0000 Distribution: F(14,4345)
+Min Obs: 8.0000
+Max Obs: 8.0000 F-statistic (robust): 68.409
+ P-value 0.0000
+Time periods: 8 Distribution: F(14,4345)
+Avg Obs: 545.00
+Min Obs: 545.00
+Max Obs: 545.00
+
+ Parameter Estimates
+================================================================================
+ Parameter Std. Err. T-stat P-value Lower CI Upper CI
+--------------------------------------------------------------------------------
+const 0.0234 0.1514 0.1546 0.8771 -0.2735 0.3203
+wp.black -0.1394 0.0480 -2.9054 0.0037 -0.2334 -0.0453
+wp.hisp 0.0217 0.0428 0.5078 0.6116 -0.0622 0.1057
+wp.exper 0.1058 0.0154 6.8706 0.0000 0.0756 0.1361
+wp.expersq -0.0047 0.0007 -6.8623 0.0000 -0.0061 -0.0034
+wp.married 0.0638 0.0168 3.8035 0.0001 0.0309 0.0967
+wp.educ 0.0919 0.0107 8.5744 0.0000 0.0709 0.1129
+wp.union 0.1059 0.0179 5.9289 0.0000 0.0709 0.1409
+wp.year.1981 0.0404 0.0247 1.6362 0.1019 -0.0080 0.0889
+wp.year.1982 0.0309 0.0324 0.9519 0.3412 -0.0327 0.0944
+wp.year.1983 0.0202 0.0417 0.4840 0.6284 -0.0616 0.1020
+wp.year.1984 0.0430 0.0515 0.8350 0.4037 -0.0580 0.1440
+wp.year.1985 0.0577 0.0615 0.9383 0.3482 -0.0629 0.1782
+wp.year.1986 0.0918 0.0716 1.2834 0.1994 -0.0485 0.2321
+wp.year.1987 0.1348 0.0817 1.6504 0.0989 -0.0253 0.2950
+================================================================================
+```
+
+## Scripts & Routines
+Doing research both as a student or professor for a university or as a professional often requires the findings to be easily
+replicated. Furthermore, as many steps could be required it can be very beneficial to have the ability to make small
+adjustments without needing to re-do every single step again. This is where `.openbb` files play an important role.
+
+By going to the main menu as depicted below, the `exe` command can be used. With this command you can run `.openbb` scripts
+that automatically run a set of commands similarly to that of the Stata do-files and SPSS syntax files. These scripts
+are located where the application is located inside the `routines` folder.
+
+
+
+This demo file has the following contents:
+```
+# Go into the econometrics context
+econometrics
+
+# Load the wage_panel dataset and include an alias
+load wage_panel -a wp
+
+# Set the MultiIndex, allowing for Panel regressions to be performed
+index wp -i nr,year
+
+# Change the type of the year column so it can be included as time effects within the regressions
+type wp.year -f category
+
+# Perform a Pooled OLS, Random Effects and Fixed Effects estimation
+panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year
+panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -r re
+panel -d wp.lwage -i wp.expersq,wp.union,wp.married,wp.year -r fe
+
+# Compare the results obtained from these regressions
+compare
+```
+
+Everything after the `#` _on the same line_ refers to comments and will not be executed. All other commands will be. This
+ultimately leads to a comparison of three models and takes less than a few seconds to execute.
+See below for the comparison result, obtained via the compare command:
+
+```
+022 Jun 20, 06:52 (๐ฆ) /econometrics/ $ compare
+ Model Comparison
+===============================================================
+ POLS RE FE
+---------------------------------------------------------------
+Dep. Variable wp.lwage wp.lwage wp.lwage
+Estimator PooledOLS RandomEffects PanelOLS
+No. Observations 4360 4360 4360
+Cov. Est. Unadjusted Unadjusted Unadjusted
+R-squared 0.1893 0.1806 0.1246
+R-Squared (Within) 0.1692 0.1799 0.1646
+R-Squared (Between) 0.2066 0.1853 0.0902
+R-Squared (Overall) 0.1893 0.1828 0.1246
+F-statistic 72.459 68.409 61.920
+P-value (F-stat) 0.0000 0.0000 0.0000
+===================== ============ =============== ============
+const 0.0921 0.0234 1.3454
+ (1.1761) (0.1546) (60.606)
+wp.black -0.1392 -0.1394
+ (-5.9049) (-2.9054)
+wp.hisp 0.0160 0.0217
+ (0.7703) (0.5078)
+wp.exper 0.0672 0.1058
+ (4.9095) (6.8706)
+wp.expersq -0.0024 -0.0047 -0.0021
+ (-2.9413) (-6.8623) (-7.5081)
+wp.married 0.1083 0.0638 0.1521
+ (6.8997) (3.8035) (9.5417)
+wp.educ 0.0913 0.0919
+ (17.442) (8.5744)
+wp.union 0.1825 0.1059 0.1768
+ (10.635) (5.9289) (10.032)
+wp.year.1981 0.0583 0.0404 0.1187
+ (1.9214) (1.6362) (3.9144)
+wp.year.1982 0.0628 0.0309 0.1843
+ (1.8900) (0.9519) (6.0168)
+wp.year.1983 0.0620 0.0202 0.2431
+ (1.6915) (0.4840) (7.7581)
+wp.year.1984 0.0905 0.0430 0.3322
+ (2.2566) (0.8350) (10.236)
+wp.year.1985 0.1092 0.0577 0.4112
+ (2.5200) (0.9383) (12.048)
+wp.year.1986 0.1420 0.0918 0.5039
+ (3.0580) (1.2834) (13.806)
+wp.year.1987 0.1738 0.1348 0.5952
+ (3.5165) (1.6504) (15.026)
+---------------------------------------------------------------
+
+T-stats reported in parentheses
+```
\ No newline at end of file