Package: BMisc 1.4.10

BMisc: Miscellaneous Functions for Panel Data, Quantiles, and Printing Results

These are miscellaneous functions for working with panel data, quantiles, and printing results. For panel data, the package includes functions for making a panel data balanced (that is, dropping missing individuals that have missing observations in any time period), converting id numbers to row numbers, and to treat repeated cross sections as panel data under the assumption of rank invariance. For quantiles, there are functions to make distribution functions from a set of data points (this is particularly useful when a distribution function is created in several steps), to combine distribution functions based on some external weights, and to invert distribution functions. Finally, there are several other miscellaneous functions for obtaining weighted means, weighted distribution functions, and weighted quantiles; to generate summary statistics and their differences for two groups; and to add or drop covariates from formulas. Additional utilities support staggered treatment adoption settings, including functions for identifying treatment groups, recovering pre-treatment outcomes and covariate averages, and computing lagged outcomes and first differences in panel data.

Authors:Brantly Callaway [aut, cre], Grant McDermott [ctb]

BMisc_1.4.10.tar.gz
BMisc_1.4.10.zip(r-4.7-x86_64)BMisc_1.4.10.zip(r-4.7-arm64)BMisc_1.4.10.zip(r-4.6-x86_64)BMisc_1.4.10.zip(r-4.6-arm64)BMisc_1.4.10.zip(r-4.5-x86_64)
BMisc_1.4.10.tgz(r-4.6-x86_64)BMisc_1.4.10.tgz(r-4.6-arm64)BMisc_1.4.10.tgz(r-4.5-x86_64)BMisc_1.4.10.tgz(r-4.5-arm64)
BMisc_1.4.10.tar.gz(r-4.7-arm64)BMisc_1.4.10.tar.gz(r-4.7-x86_64)BMisc_1.4.10.tar.gz(r-4.6-arm64)BMisc_1.4.10.tar.gz(r-4.6-x86_64)
BMisc_1.4.10.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
BMisc/json (API)

# Install 'BMisc' in R:
install.packages('BMisc', repos = c('https://bcallaway11.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bcallaway11/bmisc/issues

Pkgdown/docs site:https://bcallaway11.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

8.12 score 7 stars 11 packages 155 scripts 8.1k downloads 72 exports 3 dependencies

Last updated from:33d86c528a. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK123
linux-devel-x86_64OK157
source / vignettesOK204
linux-release-arm64OK126
linux-release-x86_64OK154
macos-release-arm64OK110
macos-release-x86_64OK156
macos-oldrel-arm64OK126
macos-oldrel-x86_64OK176
windows-devel-arm64OK212
windows-devel-x86_64OK158
windows-release-arm64OK219
windows-release-x86_64OK103
windows-oldrel-x86_64OK118
wasm-releaseOK124

Exports:add_cov_to_formulaaddCovToFormlablock_boot_sampleblockBootSamplecheck_staggeredcheck_staggered_innercheckfuncombine_ecdfscombineDfscompare_binarycompare_binary_innercompareBinarycs2paneldrop_collineardrop_cov_from_formuladropCovFromFormlaelement_wise_multget_first_differenceget_groupget_group_innerget_lagYiget_list_elementget_principal_componentsget_Yi1get_Yi1_innerget_Yibarget_Yibar_innerget_Yibar_preget_Yibar_pre_innerget_YiGmin1get_YiGmin1_innerget_Yitget_Yit_innergetListElementgetWeightedDfgetWeightedMeangetWeightedQuantilesid2rownumids2rownuminvert_ecdfinvertEcdflhs_varslhs.varsmake_balanced_panelmake_distmakeBalancedPanelmakeDistmultiplier_bootstrapmv_multorig2torig2t_innerpanel2cspanel2cs2rhsrhs_varsrhs.varsset_balanced_panelsort_panelsource_allsubsamplet2origt2orig_innertime_invariant_to_paneltoformulaTorFweighted_checkfunweighted_combine_listweighted_ecdfweighted_meanweighted_quantileweighted_quantile_innerweighted.checkfun

Dependencies:data.tableRcppRcppArmadillo

Readme and manuals

Help Manual

Help pageTopics
Add a Covariate to a Formulaadd_cov_to_formula
Block Bootstrapblock_boot_sample
check_staggeredcheck_staggered
Check Functioncheckfun
Combine Two Distribution Functionscombine_ecdfs
Compare Variables across Groupscompare_binary
Cross Section to Panelcs2panel
drop_collineardrop_collinear
Drop a Covariate from a Formuladrop_cov_from_formula
element_wise_multelement_wise_mult
get_first_differenceget_first_difference
get_groupget_group
get_lagYiget_lagYi
Return Particular Element from Each Element in a Listget_list_element
get_principal_componentsget_principal_components
get_Yi1get_Yi1
get_Yibarget_Yibar
get_Yibar_preget_Yibar_pre
get_YiGmin1get_YiGmin1
get_Yitget_Yit
Convert Vector of ids into Vector of Row Numbersids2rownum
Invert Ecdfinvert_ecdf
Left-hand Side Variableslhs_vars
Balance a Panel Data Setmake_balanced_panel
Make a Distribution Functionmake_dist
multiplier_bootstrapmultiplier_bootstrap
Matrix-Vector Multiplicationmv_mult
orig2torig2t
Panel Data to Repeated Cross Sectionspanel2cs
Panel Data to Repeated Cross Sectionspanel2cs2
Right-hand Side of Formularhs
Right-hand Side Variablesrhs_vars
set_balanced_panelset_balanced_panel
sort_panelsort_panel
source_allsource_all
Subsample of Observations from Panel Datasubsample
t2origt2orig
time_invariant_to_paneltime_invariant_to_panel
Variable Names to Formulatoformula
TorFTorF
Weighted Check Functionweighted_checkfun
weighted_combine_listweighted_combine_list
Weighted Distribution Functionweighted_ecdf
Weighted Meanweighted_mean
weighted_quantileweighted_quantile