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
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: how to convert regression coefficients into variables
Date
Wed, 30 Mar 2011 14:14:21 +0100
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/