This model targets the compatible complier probabilistic index model.
ivpim(
y,
z,
a,
X = NULL,
ps_model,
link = "logit",
init = NULL,
tol = sqrt(.Machine$double.eps),
max.iter = 100,
nleqslv.global = "none",
trace = FALSE,
test.nleqslv = FALSE,
keep.data = FALSE
)
numeric Outcome vector.
numeric Binary instrument, e.g., randomized treatment assignment.
numeric Actual received treatment, must be the same length as z
.
numeric Covariates.
glm First step propensity score glm()
object.
character Link function: "logit", or "probit".
numeric Initial guess of Newton's method.
numeric Numeric tolerance of nleqslv()
.
numeric Maximum iteration of Newton's method.
character The global strategy for Newton's method. See ?nleqslv::nleqslv.
logical Show Newton's method iteration report if TRUE.
logical Test different global strategies for Newton's method if TRUE. See ?nleqslv::testnslv.
logical Should the returned object keep original data?
A list containing the estimated coefficients and their covaraince
matrix. It also contains the diagnostics of nleqlsv()
procedure.
If keep.data
is TRUE
, then the inputs y
, z
, a
, X
, link
, w
will also be returned.