My OLS model is
Pit = a + b1*stationit + b2*distanceit + b3*compnumit + r*Xi + s*Yi +eit
Here Xi, I want to put variables which can show characteristics of station i. (such as station brand dummy, operation system dummy..)
And for Yi, Region dummythat shows the region where the stationi locates.
I guess mkmat helps to make these vector variables but don't know the exact way to use.
mkmat brand1 brand2 brand3 operation1 operation2, matrix(X)
and then,
reg price station distance compnum X Y
doesn't work. How can I put vectors into my OLS?
Related Posts with How can I put a vector variable into my regression?
STATA SE 13, how to get r square after mi estimateDear STATA users, is there a way to obtain R square (model fit statistics) after conducting mice? I…
linear mixed model accounting for correlated observationsHi I am looking for some advice regarding the appropriate code to use to assess agreement between 5 …
over-identify testwhen i run the command (estat overid) i got the following error message (no overidentifying restrict…
xtabond2Dear all, I am running some dynamic panel data with xtabond2, and often the coefficients of the lagg…
Instrumental variable estimation for panel data in case of heteroskedasticity and weak instrumentsI have an unbalanced panel dataset (N=504, T=3) and I am trying to run instrumental variable regress…
Subscribe to:
Post Comments (Atom)
0 Response to How can I put a vector variable into my regression?
Post a Comment