Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Ian Li <[email protected]> |

To |
STATA LIST <[email protected]> |

Subject |
st: Naming Equations in Stata |

Date |
Wed, 21 Sep 2011 12:20:45 +0800 |

Dear Statalisters, I am running an OLS regression across four different samples. The estimating equation is exactly the same for all the samples, for example, I run: y = a+b1X1+b2X2+e I would like to run an F-test to determine if the estimated beta coefficient b1 in the first sample is equal to b1 in the second sample, and so on for all four samples. I understand that this can be done using syntax 4 in the -test- function. The syntax is given as: test [eqno=eqno[=...]] [: coeflist] (Syntax 4) where eqno is the name of the equation. However, the help file does not describe how equations are named in Stata. The Statalist archive shows that this question has been posed before, see: http://www.stata.com/statalist/archive/2010-09/msg01294.html The solution given was to use the -sureg- function (seemingly unrelated regression). However, I do not think that this gives me what I want, as the vce (robust) function is not compatible with -sureg- (which I would like to use), and does not seem appropriate given that all I want is to test the equality of coefficients across equations. The Statalister who posted the original questions also did not indicate if the solution was adequate and gave her what she wanted. Would anyone be able to suggest how I can name equations in Stata, or an alternative way to get this F-test done, or how -sureg- is appropriate for my needs? Regards Ian * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Naming Equations in Stata***From:*Partho Sarkar <[email protected]>

- Prev by Date:
**st: survey analysis : three-way table and use of "subpop"** - Next by Date:
**Re: st: Naming Equations in Stata** - Previous by thread:
**st: survey analysis : three-way table and use of "subpop"** - Next by thread:
**Re: st: Naming Equations in Stata** - Index(es):