I have a system of equations that have all dependent variables censored at left (0) and right (1). I am trying get this work with cmp package and I am using Stata 14.2.
I have tried my estimations like this:
Unfortunately that ends up with an error message:
I am not sure whether the syntax is incorrect or whether there is some other reason for the error. I have run my model with left censoring only and that works:
Is there any ideas how to proceed?
I have tried my estimations like this:
Code:
cmp (eq1: y1 = x1 x2 x3, trunc(0 1)) (eq2: y2 = x1 x2 x3, trunc(0 1)), indicators($cmp_trunc, $cmp_trunc) constraints(1-3) vce(cluster clusterId)
Code:
cmp_model::cmp_init(): 3301 subscript invalid
<istmt>: - function returned error
Mata run-time error
r(3301);
Code:
cmp (eq1: y1 = x1 x2 x3) (eq2: y2 = x1 x2 x3),
indicators("cond(y1>0, $cmp_trunc, $cmp_left)" "cond(y2>0, $cmp_trunc, $cmp_left)") constraints(1-3) vce(cluster clusterId)

Comment