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?
effect size for one group wich is own control groupHi omnes, I am searching a stata function for calculatting size effect. There is esize wich use Hed…
How to use "if not" condition in regressionHi all, I read the syntax of regress and operators but still cannot find how to run a regression wi…
FGLS for panel dataI have a panel data N=46, T=4, with time invariant variable. Hausman test tells me I should do fixed…
Merging Cross-sections of a Panel Data SetHello everyone, This is my first post on the forum, so I hope that I will be able to provide all th…
How do I identify a variable within a date intervalHI, Would someone be able to help me with a code for how to identify a viable within a date interva…
Subscribe to:
Post Comments (Atom)
0 Response to How can I put a vector variable into my regression?
Post a Comment