Learn R Programming

drcarlate

The goal of "drcarlate" is to provides a list of functions for replicating the data simulation portion in Jiang et al.(2022).

Installation

You can install the development version of drcarlate like so:

# The easiest way to get drcarlate is to install from CRAN
install.packages("drcarlate")

Example

See "Introduction to drcarlate" for details.

Reference

Jiang L, Linton O B, Tang H, Zhang Y. Improving estimation efficiency via regression-adjustment in covariate-adaptive randomizations with imperfect compliance [J]. 2022.

library(drcarlate)

Copy Link

Version

Install

install.packages('drcarlate')

Monthly Downloads

158

Version

1.2.0

License

MIT + file LICENSE

Maintainer

Mingxin Zhang

Last Published

June 12th, 2023

Functions in drcarlate (1.2.0)

Output

Computes All the Estimators
ATETrueValue

Calculates the true ATE effect.
CovAdptRnd

Generate treatment assignment under various CARs
LogisticReg

Logistic Regression Function
ATEOutput

Computes linear, nonparametric and regularized ATE estimator
JLTZ

Reproduce the results of the Jiang et al. (2022)
ATEDGP

Simulates the data for ATE estimators
LinearLogit

Linear Regression or Logit Regression
FuncDGP

Generate Data for LATE
ATEJLTZ

ATEJLTZ runs the code for ATE estimator
pihat

Compute Estimated Treatment Assignment Probabilities
stanE

Compute the Estimated Standard Error of the Input Estimator
feasiblePostLassoMatTool

Feasible Post Lasso Mat Tool
splinebasis

For each column of an input matrix, elements which are less than the median of that column are set to 0, leaving the rest of the elements unchanged
norminv

Inverse of the normal cumulative distribution function (cdf)
tau

Compute Estimated LATE
TrueValue

Calculate the True LATE tau.
data_table

Data used to reproduce Table 5 results in Jiang et. al. (2022)