The panelhetero package provides tools for estimating the degree of heterogeneity acorss cross-sectional units using panel data. The methods are developed by the following papers:
Intsallation
Run:
install.packages("panelhetero")
or
# install.packages("devtools") # if necessary
devtools::install_github("tkhdyanagi/panelhetero", build_vignettes = TRUE)