Science Score: 39.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.9%) to scientific vocabulary
Keywords
Repository
Poolability Tests in Panel Data
Basic Info
- Host: GitHub
- Owner: cadam00
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://cadam00.github.io/poobly/
- Size: 2.21 MB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Hsiao Poolability test (1986;2022) in R
Install
The development version of the package can be installed via
r
if (!require(remotes)) install.packages("remotes")
remotes::install_github("cadam00/poobly")
Hsiao Poolability test
The Hsiao poolability/homogeneity test (Hsiao 1986; 2022) for panel data is used to determine the homogeneity of coefficients across individuals in panel data. The test is composed of three consecutive hypotheses. The hypothesis that slope and intercept (constant) coefficients are the same across the panel is initially tested. If this hypothesis is not rejected, then the total homogeneity (pool) of both slopes and intercepts is concluded. If the first hypothesis is rejected, the second hypothesis tests the homogeneity of the slope coefficients. If this second hypothesis is rejected, different slope coefficients for all individuals are indicated, suggesting total heterogeneity. If this hypothesis is not rejected, then homogeneity of slope coefficients is implied. If this second hypothesis is not rejected, then the the third hypothesis tests the homogeneity of the intercept coefficients across individuals is performed. If this last hypothesis is not rejected, then total homogeneity is resulted. If this last hypothesis is rejected, equal slopes but different intercepts across individuals are indicated. The current implementation is derived from Hsiao (2022). This procedure is capitulated in Figure 1 and Table 1.
Fig. 1: Hsiao homogeneity hypothesis testing flow chart.
| Hypothesis | Null | Alternative |
| H1 | Pooled | H2 |
| H2 | H3 | Heterogeneous intercepts & slopes |
| H3 | Pooled | Heterogeneous intercepts & Homogeneous slopes |
Table 1: Hsiao homogeneity hypothesis testing table.
Example
For this example, the data Gasoline from plm R package will be
used.
``` r
Import poobly and plm packages to workspace
library(poobly) library(plm)
Import "Gasoline" dataset
data("Gasoline", package = "plm")
Print first 6 rows
head(Gasoline)
country year lgaspcar lincomep lrpmg lcarpcap
1 AUSTRIA 1960 4.173244 -6.474277 -0.3345476 -9.766840
2 AUSTRIA 1961 4.100989 -6.426006 -0.3513276 -9.608622
3 AUSTRIA 1962 4.073177 -6.407308 -0.3795177 -9.457257
4 AUSTRIA 1963 4.059509 -6.370679 -0.4142514 -9.343155
5 AUSTRIA 1964 4.037689 -6.322247 -0.4453354 -9.237739
6 AUSTRIA 1965 4.033983 -6.294668 -0.4970607 -9.123903
```
A pdata.frame or a data.frame object is expected as and a formula are
required as minimum essential input for the hsiao function. Note that
data.frame object input should be able to be transformed as pdata.frame
object and index input can be used as well. For more about pdata.frame see
at plm::pdata.frame.
```r
Hsiao hypothesis testing
x <- hsiao(lgaspcar ~ lincomep + lrpmg + lcarpcap, Gasoline)
print(x)
Hsiao Homogeneity Test
Hypothesis| Null | Alternative
----------+------+---------------------------------------------
H1 |Pooled| H2
H2 | H3 | Heterogeneous intercepts & slopes
H3 |Pooled|Heterogeneous intercepts & homogeneous slopes
===============================================================
formula: lgaspcar ~ lincomep + lrpmg + lcarpcap
Hypothesis F-statistic df1 df2 p-value
1 H1 129.3166 68 270 < 0.001
2 H2 27.3352 51 270 < 0.001
3 H3 83.9608 17 321 < 0.001
```
According to this result, the coefficients of the given countries have both heterogeneous intercept & slope. In detail, the first hypothesis, $H1$, is rejected in 1% statistical significance level, indicating strong evidence against the $H1$. Then, the second hypothesis, $H_2$, is tested and rejected as well in 1% statistical significance level. This is the end of the testing and so there is strong evidence that both intercept and slope are heterogeneous.
References
Hsiao, C. (1986) Analysis of Panel Data. 1st edn. Cambridge: Cambridge
University Press (Econometric Society Monographs).
Hsiao, C. (2022) Analysis of Panel Data. 4th edn. Cambridge: Cambridge University Press (Econometric Society Monographs), pp. 43-49. doi:10.1017/9781009057745
Owner
- Login: cadam00
- Kind: user
- Repositories: 1
- Profile: https://github.com/cadam00
GitHub Events
Total
- Watch event: 1
- Issue comment event: 1
- Push event: 33
- Pull request event: 2
- Fork event: 1
- Create event: 3
Last Year
- Watch event: 1
- Issue comment event: 1
- Push event: 33
- Pull request event: 2
- Fork event: 1
- Create event: 3
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 2 days
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 2 days
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- tappek (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 186 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: poobly
Poolability Tests in Panel Data
- Homepage: https://github.com/cadam00/poobly
- Documentation: http://cran.r-project.org/web/packages/poobly/poobly.pdf
- License: GPL-3
-
Latest release: 0.1.2
published 10 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- methods * imports
- plm * imports
- stats * imports
- Rfast * suggests
- Rfast2 * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests