Skip to content
/ factiv Public

❗ This is a read-only mirror of the CRAN R package repository. factiv — Instrumental Variables Estimation for 2^k Factorial Experiments. Homepage: https://github.com/mattblackwell/factiv Report bugs for this package: https://github.com/mattblackwell/factiv/issues

Notifications You must be signed in to change notification settings

cran/factiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

factiv: Analyzing Factorial Experiments with Noncompliance

factiv is an R package to estimate causal effects in factorial experiments with noncompliance on multiple factors. It implements the methodology of Blackwell (2017) and Blackwell and Pashley (2020).

To install the package, you can use the remotes package:

remotes::install_github("mattblackwell/factiv")

There are two main functions in the package, iv_factorial, which performs superpopulation-based inference, and iv_finite_factorial, which performs finite-population inference for the factorial effects using the Fieller method described in Blackwell and Pashley (2020). You can use these functions in the following manner:

library(factiv)
data(newhaven)

superpop <- iv_factorial(turnout_98 ~ inperson + phone | inperson_rand + 
  phone_rand, data = newhaven)

finite <- iv_finite_factorial(formula = turnout_98 ~ inperson + phone |
  inperson_rand + phone_rand, data = newhaven)

About

❗ This is a read-only mirror of the CRAN R package repository. factiv — Instrumental Variables Estimation for 2^k Factorial Experiments. Homepage: https://github.com/mattblackwell/factiv Report bugs for this package: https://github.com/mattblackwell/factiv/issues

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages