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:
Run:
install.packages("panelhetero")
or
# install.packages("devtools") # if necessary
::install_github("tkhdyanagi/panelhetero", build_vignettes = TRUE) devtools