|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: re: comparing coefficients in different regressions
Antonio said
global malesuic (divper_lag income_lag gini_xpg alcohtot gunhomper
unempl p1019 p65 pctcatholic pcprotestant pctmormon pctbabtispt
i1-i51 )
global femalesuic (divper_lag income_lag gini_xpg alcohtot gunhomper
unempl p1019 p65 pctcatholic pcprotestant pctmormon pctbabtispt
i1-i51 )
sureg $malesuic $femalesuic
I got the message singular matrix, i am trying to estimate a fixed
effects model
test [malesuic] gunhomper = [femalesuic] gunhomper
First of all there is no need for the globals. Equations will be
given names automatically. What you have done is exclude the
dependent variable from each regression. Those equation names are
used in the test command WITHOUT intervening spaces, e.g. [malesuic]
gunhomper.
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/