Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: comparing coefficients in different regressions


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: comparing coefficients in different regressions
Date   Mon, 14 Jan 2008 11:26:22 -0500

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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index