Learn R Programming

NonlinearDiD (version 0.1.0)

dr_score_logit_cpp: Logit-scale DR score computation

Description

Computes the doubly-robust score function for the logit-scale DiD estimator. Used internally for fast SE computation.

Usage

dr_score_logit_cpp(delta_logit, D, pscore, mu_hat)

Value

Numeric vector of DR scores (influence functions).

Arguments

delta_logit

Numeric vector of logit(Y1) - logit(Y0).

D

Integer vector of treatment indicators.

pscore

Numeric vector of propensity scores.

mu_hat

Numeric vector of outcome model predictions.