Repository navigation
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14 +/- ##
==========================================
+ Coverage 82.93% 84.91% +1.98%
==========================================
Files 16 17 +1
Lines 1365 1518 +153
==========================================
+ Hits 1132 1289 +157
+ Misses 233 229 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds major new features and improvements to the cross-sectional dependence diagnostics in the
csdmpackage. The most significant update is the extension of thecd_test()function to support direct testing of panel variables fromdata.frameandpdata.frameobjects, not just residuals or fitted models. The update also introduces arepsparameter for repeated randomization in CDw/CDw+ tests, improves reporting of excluded time periods, and provides clearer documentation and print output.New and extended methods for panel variable testing:
cd_test()methods fordata.frameandpdata.frameobjects, allowing users to select numeric panel variables explicitly via...(bare names, quoted names, or character vectors). These methods require explicitidandtimecolumns for plain data frames and use stored indexes forpdata.frame. The results are returned as a named list (cd_test_list), with one result per variable, and print as a combined table with sample dimensions. [1] [2] [3] [4]Enhancements to CDw and CDw+ tests:
repsargument to CDw and CDw+ tests, allowing multiple independent random weight draws (default 1). The statistics are combined according to equation (33) of Juodis and Reese, and the number of draws is recorded in the output. Seeded calls now apply the seed separately to each variable's test. [1] [2] [3] [4] [5] [6]Improved reporting and print output:
cd_test_listnow displays a combined table of results by variable, including test statistics, p-values, and sample dimensions. [1] [2]Handling of incomplete time periods:
drop.incomplete.timesin anexcluded_timesfield, alongside periods with no finite observations, for more transparent reporting. [1] [2] [3]Documentation and usage examples:
README.mdto reflect the new methods, argument details, and usage examples for variable selection and repeated randomization. [1] [2] [3] [4] [5] [6]These changes make the cross-sectional dependence diagnostics more flexible, user-friendly, and informative for a wider range of panel data workflows.