Partial Homogeneity in Staggered Difference-in-Differences


[Up] [Top]

Documentation for package ‘phdid’ version 0.1.0

Help Pages

adjusted_rand Adjusted Rand index between two partitions
aggregate.bayes_ph Aggregate cohort-time effects into a reported estimand
aggregate.ph_fit Aggregate cohort-time effects into a reported estimand
alpha_for_groups Concentration parameter giving a target prior number of groups
alpha_sensitivity Regularisation paths: how the estimates move with the tuning parameter
bayes_ph The Dirichlet Process partial-homogeneity estimator
coclustering Posterior co-clustering probabilities
covariance_check Compare exact and diagonal treatment of the covariance
enumerate_partitions Exact partition posterior by enumeration
expected_groups Concentration parameter giving a target prior number of groups
flex_twfe The fully flexible and fully pooled benchmarks
homogeneity_test Is there heterogeneity to recover?
l0_ph The l0-penalised partial-homogeneity estimator
lambda_sensitivity Regularisation paths: how the estimates move with the tuning parameter
ph_data Assemble the inputs for a partial-homogeneity analysis
ph_data.data.frame Assemble the inputs for a partial-homogeneity analysis
ph_data.default Assemble the inputs for a partial-homogeneity analysis
ph_data.MP Assemble the inputs for a partial-homogeneity analysis
ph_design A calibrated partial-homogeneity design
ph_fit Fit the grouped model under a given partition
ph_rhat Convergence diagnostics for the Gibbs sampler
ph_sample Draw one replication from a partial-homogeneity design
ph_truth A partial-homogeneity parameter vector
plot.bayes_ph Plot the posterior co-clustering matrix
plot.ph_fit Plot cohort-time effects grouped by the selected partition
plot_coclustering Plot the posterior co-clustering matrix
plot_l0_path Plot the l0 solution path
plot_placebo_band Plot event effects against a placebo noise band
plot_sensitivity Plot a regularisation path
plot_sim_study Plot Monte Carlo results across the true number of effects
point_partition A single representative partition from the posterior
pooled_twfe The fully flexible and fully pooled benchmarks
sim_study Monte Carlo study of the partial-homogeneity estimators