Skip to contents

Installs suggested packages that provide backends for various causal inference methods. You can install all backends at once or select a specific method category.

Usage

install_backends(method = "all", quiet = FALSE)

Arguments

method

Character string specifying which method's packages to install. One of "all", "did", "rd", "sc", "iv", "matching", "sensitivity", "rct", "event_study". Default is "all".

quiet

Logical. If TRUE, suppress installation messages. Default is FALSE.

Value

Invisibly returns a character vector of the packages that were installed or already available.

Details

The causalverse package uses a lightweight architecture where backend packages are listed in Suggests rather than Imports. This means they are not installed automatically with causalverse, keeping the initial install fast and lightweight.

Use this function to install the backends you need for your analysis. Each method category installs a curated set of state-of-the-art packages:

"did"

did, did2s, DRDID, HonestDiD, bacondecomp, fect, staggered, TwoWayFEWeights, didimputation

"rd"

rdrobust, rddensity, rdpower, rdlocrand, rdmulti, rdbounds

"sc"

Synth, augsynth, gsynth, MCPanel

"iv"

ivreg, ivmodel, hdm, SteinIV

"matching"

MatchIt, cobalt, WeightIt, optmatch, CBPS, ebal

"sensitivity"

sensemakr, EValue, HonestDiD, rbounds, konfound

"rct"

estimatr, DeclareDesign, randomizr, ri2, grf

"event_study"

EventStudy, estudy2

Examples

if (FALSE) { # \dontrun{
# Install all backends
install_backends()

# Install only DID-related packages
install_backends("did")

# Install IV and sensitivity packages
install_backends("iv")
install_backends("sensitivity")
} # }