Closed jkcshea closed 4 years ago
This was because the code was trying to include the monotonicity shape constraints in the A
matrix (see #191).
But this unnecessary if neither m0
nor m1
includes the u
variable or a spline.
This has been corrected, and the following warning message is thrown out instead.
> library(data.table)
> data <- fread("data_example.csv")
> ivmte(data = data,
+ target = "ate",
+ ivlike = YD ~ Z1,
+ propensity = D ~ Z1,
+ m1 = ~ 1,
+ m0 = ~ 1,
+ m1.dec = TRUE)
Bounds on the target parameter: [0.6624073, 0.6624073]
Audit terminated successfully after 1 round
Warning message:
Neither 'm0' nor 'm1' contains the unobserved variable 'u'.
Monotonicity constraints only apply to the unobserved variable,
so will be ignored.
This example is the same as in #191, but with
m0.dec = TRUE
. This causes an error sincem0
is declared to be just the intercept.