No articles match
Weighting Methods1 days ago
Introduction | Weighting | Balance and Effective Sample Size | Balance | Effective Sample Size | Estimands and Target Populations | Treatment Types | Binary treatments | Multi-category treatments | Continuous treatments | Parametric Methods | Propensity Score Weighting Using Generalized Linear Models (method = "glm") | Covariate Balancing Propensity Score Weighting (method = "cbps") | Inverse Probability Tilting (method = "ipt") | Machine Learning Methods | Propensity Score Weighting Using Generalized Boosted Models (method = "gbm") | Propensity Score Weighting Using SuperLearner (method = "super") | Propensity Score Weighting Using BART (method = "bart") | Optimization-Based Methods | Entropy Balancing (method = "ebal") | Stable Balancing Weights (method = "optweight") | Nonparametric Covariate Balancing Propensity Score Weighting (method = "npcbps") | Energy Balancing (method = "energy") | Characteristic Function Distance Balancing (method = "cfd") | Additional Options | Balancing Higher Moments, Interactions, and Quantiles (moments, int, quantile) | Stabilizing Weights (stabilize) | Trimming Weights (trim()) | Calibrating Propensity Scores (calibrate()) | Marginal Mean Weighting Through Stratification (subclass) | Supplying Propensity Scores (ps) | Choosing a Weighting Method | Summary of the Weighting Methods | A Workflow for Selecting a Method | Reporting the Weighting Specification | References
Reproducibility and Parallelization with fwb7 days ago
What the results depend on | Why this works | Reproducing results from earlier versions | The simple argument | BCa confidence intervals | Choosing a parallel backend | Using futurize | Progress bars | A note on statistic
Estimating Effects After Weighting8 days ago
Introduction | Identifying the estimand | G-computation | Modeling the Outcome | Estimating Standard Errors and Confidence Intervals | Asymptotically Correct Standard Errors Using M-estimation | Robust Standard Errors | Bootstrapping | Estimating Treatment Effects and Standard Errors After Weighting | The Standard Case: Binary Treatment with Asymptotically Correct SEs | Adjustments to the Standard Case | Weighting for the ATT or ATC | Weighting for estimands other than the ATT, ATC, or ATE | Binary, count, and categorical outcomes | Survival outcomes | Using sampling weights with complex surveys | Multi-Category Treatments | Continuous Treatments | Longitudinal Treatments | Moderation Analysis | Reporting Results | References | Code to Generate Data used in Examples
Estimating the ADRF with adrftools12 days ago
Introduction | Effect Curves | This Guide | The Data | Analysis | Fitting the outcome model | Computing and plotting the ADRF | Testing the ADRF | Estimating a linear projection | Other effect curves | Reference effect curves | The AMEF | Subgroup ADRFs | Male = 0 | Male = 1 | Subgroup ADRF contrasts | Additional Scenarios | Nonlinear outcome models | Transformed | Untransformed | Untransformed | Balancing weights | Sampling weights | Using survey | Using glm() | Sampling weights and balancing weights together | Other scenarios | Multiply imputed data | Using MatchThem | Bayesian models | References
Installing Supporting Packages13 days ago
Propensity score weighting using GLMs (method = "glm") | missing = "saem" | Binary and multi-category treatments with link = "br.logit" | Multi-category treatments with multi.method = "mclogit" | Multilevel treatment models with random effects | Multi-category treatments with multi.method = "mnp" | Propensity score weighting using GBM (method = "gbm") | Covariate Balancing Propensity Score weighting (method = "cbps") | Nonparametric Covariate Balancing Propensity Score weighting (method = "npcbps") | Entropy balancing (method = "ebal") | Inverse probability tilting (method = "ipt") | Stable Balancing Weights (method = "optweight") | Propensity score weighting using SuperLearner (method = "super") | Propensity score weighting using BART (method = "bart") | Energy balancing (method = "energy") | Characteristic function distance balancing (method = "cfd")
Shift Interventions and Average Derivative Effects13 days ago
Introduction | Shift Curves and the ADE in adrftools | This Guide | The Data | Analysis | Fitting the outcome model | Computing and plotting the shift curve | Choosing the size of the shift | Effects of shifts | The average derivative effect | The ADE, the AMEF, and the projection of the ADRF | Subgroup shift curves and ADEs | Other shift interventions | Proportional reductions | Capping the treatment | Additional Scenarios | Inference | Nonlinear outcome models | Bayesian models | References
Generalized BART with bartisan24 days ago
Introduction | The Model | A Sum of Trees | The Generalization | The Prior | Soft Rules (gate) | The Predictor Transform (x_transform) | Sparsity (sparsity) | The Sampler | Bayesian Backfitting | Moving the Trees | The General Case, and the Laplace Approximation | Data Augmentation (augment) | Nuisance Parameters | The Dirichlet Process Mixture | Practical Matters | Missing Predictor Values | Several Chains (chains) | Choosing the Settings | Speed | Gains From Data Augmentation (augment) | Correctness | Comparison With Other BART Packages | Notes and Limitations | Further Reading | References
Response Families in bartisan24 days ago
Introduction | The Families | Choosing a Family | The Default Family (family Omitted) | Numeric Responses | An Estimated Error Shape with a Varying Spread | Per-Forest Predictors and Settings | Positive Continuous Responses | Binary Responses | Counts | Excess Zeros | Zero Inflation and Hurdles | Overdispersion in the Count Component | Ordered Categories | The Prior on the Cutpoints (cut_alpha) | Empty Categories | A Continuous Outcome as Ordinal | Unordered Categories | Bounded Responses | A Point Mass at Zero and a Continuous Positive Part | Right-Censored Survival Times | Other Links and Custom Likelihoods | References
Using bartisan in Prediction Workflows27 days ago
Introduction | This Guide | Super Learning (SL.bartisan()) | Changing the Settings of the Learner | tidymodels (bart(engine = "bartisan")) | Tuning by Cross-Validation | Survival Outcomes (mode = "censored regression") | Multiple Imputation (mice.impute.bartisan()) | References
Model Comparison29 days ago
Introduction | Leave-One-Out Cross-Validation (loo()) | Failures of the Approximation | Comparing Two Models (loo_compare()) | Comparing Links (family) | Comparing Against a Bayesian GLM | Tuning | Additional Topics | A Constant Coefficient Against a Varying One (vc()) | The Scale of the Log Density (scale) | Variable Selection | Further Reading | References
Survival Analysis in bartisan29 days ago
Introduction | The Survival Families | Fitting a Model | Choosing a Family | The Error Distribution (error_density()) | Predicted and Observed Survival | Leave-One-Out Cross-Validation (loo()) | Interpreting a Fit | The Additive Predictor (type = "link") | Survival Probabilities (type = "survival") | Median Survival Times (type = "response") | Hazards (type = "hazard") | Averages and Contrasts | Survival Curves | Time Ratios and Hazard Ratios | Additional Topics | The Baseline Hazard Grid (num_bins) | Covariate Effects That Change Over Time | Treatment Effects (bcf()) | Further Reading | References
Checking Convergence and Fit30 days ago
Introduction | Convergence | Every Statistic in One Call (diagnose()) | Running More Than One Chain (chains) | The Rows of the Table | The Exception for eta | Looking at the Chains (as_draws()) | Diagnosing the Quantity Being Reported | Diagnosing Anything Else (summarise_draws()) | Remedies for Poor Mixing | A Worked Example: More Draws, Same Model | Fit | Reading the Prior Back (prior_summary()) | Before the Data: The Prior Predictive (prior_only) | Posterior Predictive Checks (pp_check()) | Checks Worth Reaching For | Calibration | Residuals | The Bayesian R-Squared (r2()) | A Checklist | Further Reading | References
Frequently Asked Questions30 days ago
What is BART? | How/When should I use BART? | How can a machine learning method be Bayesian? | How can a Bayesian method be machine learning? | How can BART be used for inference? | How do I get estimates out of the model? | What if I have missing data? | Can I supply my own likelihood? | Why is my model slow, and what should I change first? | What if I'm a frequentist? | Is BART good? | How can BART be used for causal inference? | What are Bayesian Causal Forests? | How do I get a treatment effect? | What papers should I read to better understand BART? | What does the name "bartisan" mean? | How does bartisan differ from other BART implementations in R? | What model family should I use? | How should I select the values of the hyperparameters? | How should I choose how many chains and burn-in and posterior draws? | References
Getting Started with bartisan30 days ago
Introduction | Parallelization and Progress Bars | The Data | Fitting the Model | Checking the Model | Convergence | Fit | Variable Importance | Interpreting the Fit | A Table of Average Comparisons | The Shape of a Relationship | The Effect of a Treatment | Predicting New Observations | Comparing Models | Limitations | Further Reading | References
Causal Inference with BART1 months ago
Introduction | Confounding | Assumptions for Causal Inference | Checking Positivity | The Estimator: G-Computation | Conditional, Sample, and Population Averages | The Outcome Model | Potential Outcomes | Computation and Scale of the Estimate | The Same Answer Through marginaleffects | Using Bayesian Causal Forests | Conditional Effects | A Second Example: A Continuous Outcome, and the ATT | Interpreting the Credible Interval | Further Reading | References
Effects, Curves, and Interactions1 months ago
Introduction | Predictions, Comparisons, and Slopes | Average Effects (avg_comparisons()) | The Splitting Prior and a Contrast (sparsity) | Choosing the Step (variables) | Effects for Subgroups (by) | The Shape of a Relationship (partial_dependence()) | Values of the Second Predictor | The Same Curve Through marginaleffects | Slopes and the Predictor Transform (avg_slopes()) | Descriptions of the Fitted Model | Further Reading | References
Variable Importance1 months ago
Introduction | Split Counts and Usage Proportions (variable_importance()) | Calibrating With Noise Predictors | Separation With a Stronger Signal | Correlated Predictors | The Limits of a Usage Ranking | The Number of Trees (num_trees) | Further Reading | References
Varying Coefficients and Random Intercepts1 months ago
Introduction | The Model | Declaring a Varying Coefficient (vc()) | Effect Modifiers (modifiers) | Centering the Covariate (center) | A Constant Coefficient (vc(z, ~ 1)) | Reading a Fit | The Coefficients (coef()) | Effects From the Coefficients (estimate_effect()) | Settings That Vary by Forest | Families With Several Additive Predictors | Bayesian Causal Forests (bcf()) | Random Intercepts ((1 | group)) | Further Reading | References
Longitudinal Treatments2 months ago
Introduction | Marginal Structural Models for Longitudinal Treatments | The Estimand | Time-Varying Confounding | Assumptions | Inverse Probability Weights | Estimating Weights for a Longitudinal Treatment | The Data | Initial Imbalance | Estimating the Weights | Assessing Balance | Estimating the Treatment Effect | Accounting for Loss to Follow-Up | The Estimand with Censoring | Simulating Loss to Follow-Up | Other Considerations | References
Using WeightIt to Estimate Balancing Weights2 months ago
Introduction | Balancing Weights for a Point Treatment | Balancing Weights for a Longitudinal Treatment | Accounting for censoring | References
Assessing Balance2 months ago
Introduction | Recommendations for Balance Assessment | Recommendations for Balance Reporting | Assessing Balance with MatchIt | summary.matchit() | plot.summary.matchit() | plot.matchit() | Assessing Balance After Subclassification | Assessing Balance with cobalt | bal.tab() | love.plot() | bal.plot() | Conclusion | References
Estimating Effects After Matching2 months ago
Introduction | Identifying the estimand | G-computation | Modeling the Outcome | Estimating Standard Errors and Confidence Intervals | Robust and Cluster-Robust Standard Errors | Bootstrapping | Estimating Treatment Effects and Standard Errors After Matching | The Standard Case | Adjustments to the Standard Case | Matching for the ATE | Matching with replacement | Matching without pairing | Propensity score subclassification | Binary outcomes | Survival outcomes | Using Bootstrapping to Estimate Confidence Intervals | The standard bootstrap | The cluster bootstrap | Moderation Analysis | Reporting Results | Common Mistakes | 1. Failing to include weights | 2. Failing to use robust or cluster-robust standard errors | 3. Interpreting conditional effects as marginal effects | References | Code to Generate Data used in Examples
Matching Methods2 months ago
Introduction | Matching | Nearest Neighbor Matching (method = "nearest") | Optimal Pair Matching (method = "optimal") | Optimal Full Matching (method = "full") | Generalized Full Matching (method = "quick") | Genetic Matching (method = "genetic") | Exact Matching (method = "exact") | Coarsened Exact Matching (method = "cem") | Subclassification (method = "subclass") | Cardinality and Profile Matching (method = "cardinality") | Customizing the Matching Specification | Specifying the propensity score or other distance measure (distance) | Implementing common support restrictions (discard) | Caliper matching (caliper) | Mahalanobis distance matching (mahvars) | Exact matching (exact) | Anti-exact matching (antiexact) | Matching with replacement (replace) | $k$:1 matching (ratio) | Matching order (m.order) | Choosing a Matching Method | Reporting the Matching Specification | References
Matching with Sampling Weights2 months ago
Introduction | Matching | Assessing Balance | Estimating the Effect | Code to Generate Data used in Examples | References
MatchIt: Getting Started2 months ago
Introduction | Planning | Check Initial Imbalance | Matching | Assessing the Quality of Matches | Trying a Different Matching Specification | Estimating the Treatment Effect | Reporting Results | Conclusion | References
Frequently Asked Questions3 months ago
How are standardized mean differences computed in cobalt? | Why are mean differences not standardized for binary covariates? | Why do you use the same standardization factor before and after adjustment? | How do I extract the balance tables from the bal.tab() object? | How are balance statistics computed when using subclassification? | Why don't I get the same balance statistics when using cobalt as I do when using tableone? | Why doesn't thresholds work with bal.tab() with multiply imputed or clustered data? | References
Covariate Balance Tables and Plots: A Guide to the cobalt Package4 months ago
Introduction | Citing cobalt | Why cobalt? | Visual clarity | Useful summaries | One tool to rule them all | Flexibility | Pretty plots | Unique features | How To Use cobalt | Utilities | bal.tab() | Using bal.tab() on its own | Using bal.tab() with MatchIt | Using bal.tab() with WeightIt | bal.plot() | love.plot() | Additional Features | Using cobalt with continuous treatments | Using cobalt with multi-category treatments | Using cobalt with censoring | Comparing balancing methods | Using the prognostic score for balance assessment | Details on Calculations | Variance in Standardized Mean Differences and Correlations | Weighted Variance | Effective Sample Size for Weighting | What's Missing in cobalt | Test Statistics and P-values | Q-Q Plots and Summaries | What's Added in cobalt | Density Plots | Variance Ratios | Distinguishing Continuous and Binary Covariates | Interactions and Polynomials | Clusters | Missing Data | For Programmers: Integrating cobalt with Your Package | Acknowledgments | References
Using love.plot() To Generate Love Plots4 months ago
References
Using cobalt with Longitudinal Treatments4 months ago
Setup | bal.tab() | bal.plot() | love.plot() | Censoring | Other Packages | References
Optimizing Tuning Parameters for Balance6 months ago
bal.compute() and bal.init() | Balance statistics | smd.mean, smd.max, smd.rms | ks.mean, ks.max, ks.rms | ovl.mean, ovl.max, ovl.rms | mahalanobis | energy.dist | kernel.dist | l1.med | r2, r2.2, r2.3 | p.mean, p.max, p.rms | s.mean, s.max, s.rms | distance.cov, distance.cor | Choosing a balance statistic | Example | Tuning GBM for balance | References
Using cobalt with Clustered, Multiply Imputed, and Other Segmented Data6 months ago
cobalt and Segmented Data | Clustered Data | bal.tab() | bal.plot() | love.plot() | Multiply Imputed Data | Multi-Category Treatments with Multiply Imputed Data | Concluding Remarks
Using cobalt with Other Preprocessing Packages10 months ago
Utilities | splitfactor() and unsplitfactor() | get.w() | bal.tab() | Using bal.tab() with twang | Using bal.tab() with Matching | Using bal.tab() with optmatch | Using bal.tab() with CBPS | Using bal.tab() with ebal | Using bal.tab() with designmatch | Using bal.tab() with sbw | Using bal.tab() with MatchThem | Using bal.tab() with cem | Using bal.tab() with other packages
clarify: Simulation-Based Inference for Regression Models1 years ago
Introduction | Related software | Using clarify | 1. Fitting the model | 2. Drawing from the coefficient distribution | 3. Computing derived quantities | 4. Summarize and visualize the simulated distribution | Wrappers for sim_apply(): sim_setx(), sim_ame(), and sim_adrf() | sim_setx(): predictions at representative values | sim_ame(): average adjusted predictions and average marginal effects | sim_adrf(): average dose-response functions | Transforming and combining estimates | transform() | cbind() | Using clarify with multiply imputed data | Comparison to other packages | Conclusion | References
Translating Zelig to clarify1 years ago
Introduction | Predictions at representative values | Zelig workflow | clarify workflow | Rare-events logit | Estimating the ATT after matching | Combining results after multiple imputation | References