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]
RE: st: how to convert regression coefficients into variables
From
"Steve Martin" <[email protected]>
To
<[email protected]>
Subject
RE: st: how to convert regression coefficients into variables
Date
Wed, 30 Mar 2011 14:32:25 +0100
Thanks Nick!
Steve
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 30 March 2011 14:14
To: [email protected]
Subject: Re: st: how to convert regression coefficients into variables
reshape wide estimate, i(id) j(parameter) string
Nick
On Wed, Mar 30, 2011 at 2:09 PM, Steve Martin <[email protected]>
wrote:
> Thanks Roger.
>
> I now have a dataset of the form:
>
> id parameter estimate
> 1 spend 3
> 1 imd 6
> 1 lonepen 8
> 2 spend 4
> 2 imd 7
> 2 lonepen 9
>
> But I would like it as:
>
> id spend imd lonepen
> 1 3 6 8
> 2 4 7 9
>
> I guess this is a reshape but I can't work it out!
>
*
* 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/
*
* 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/