Good Morning,
I am trying to determine whether my endogenous variable’s coefficient differs across two subsamples of my population. I have used previous forum answers to try and solve the problem myself.
1st attempt to solve I received an error after the first line of code:
I am trying to determine whether my endogenous variable’s coefficient differs across two subsamples of my population. I have used previous forum answers to try and solve the problem myself.
1st attempt to solve I received an error after the first line of code:
ivreg2 Y a c d (e = z1 z2 z3) if t==0, pscore(est1)2nd attempt to solve (change ivreg2 to ivreg) I received an error after the final line of code”
ERROR “option pscore() not allowed”
est store est1
est change est1, scorevars(est1)
ivreg2 Y a c d (e = z1 z2 z3) if t==1, pscore(est2)
est store est2
est change est2, scorevars(est2)
suest est1 est2
3rd attempt to solve:
ivreg Y a c d (e = z1 z2 z3) if t==0, pscore(est1)
est store est1
est change est1, scorevars(est1)
ivreg Y a c d (e = z1 z2 z3) if t==1, pscore(est2)
est store est2
est change est2, scorevars(est2)
suest est1 est2
ERROR “ivreg is not supported by suest”
ivreg2 Y a c d (e = z1 z2 z3) if t==0Please may you help me to understand why my previous codes have not worked and, if possible, suggest a way forward. Thank you so much.
est store est1
ivreg2 Y a c d (e = z1 z2 z3) if t==1
est store est2
gmm est1: Y-{b1}a -{b2}c -{b3}d -{b4}e-{b0} ///
ERROR “must specify parameters() or nparameters()”
gmm est2: Y -{c1}a -{c2}c -{c3}d -{c4}e-{c0} ///
instruments(est1: a c d z1 z2 z3) ///
instruments(est2: a c d z1 z2 z3) ///
onestep winitial(unadjusted, indep)
test ([b4]_cons = [b4]_cons)
Comment