[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: SUR on stacked data
----- Original Message -----
From: "Vimalanand S. Prabhu" <firstname.lastname@example.org>
Sent: Wednesday, April 16, 2003 11:01 PM
Subject: st: SUR on stacked data
> Dear Friends,
> I have data stacked into columns. I want to conduct a SUR on this data
> Y1 = f(x1)
> Y2= f(x2)
> where y1, x1 and y2, x2 are variables for different gender.
> Note that both Xs are not same (else SUR is algebriacally equivalent to
> Do you know how to convert a stacked dataset into a formal where I can
> directly use "sureg" command for SUR model?
Actually there is no need for a separate(2) program since -reshape will
covert the data into a wide format
This data set is in "long" format. In order to use -sureg- you need to
transform the data into a "wide" format.
reshape wide invest mvalue kstock year, i(time) j(com)
sureg (invest1 mvalue1 ) (invest2 mvalue2)
* For searches and help try: