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: STATA Pivot capability
From
Michael Stewart <[email protected]>
To
[email protected]
Subject
Re: st: STATA Pivot capability
Date
Sun, 10 Feb 2013 12:22:02 -0500
I dont have a specific question.I happened to see my colleague working
with pivot tables and I could not import them to stata.Hence the
question.I dont have any research plans using data from pivot tables
Thanks
Mike
On Sun, Feb 10, 2013 at 10:42 AM, Nick Cox <[email protected]> wrote:
> Questions assuming familiarity with the details of MS Excel cut down
> the readership quite a bit.
>
> My guess is much the same as Jay's, and the answer is that you can
> import this; you will need to -reshape- afterwards to do very much
> useful
>
> Nick
>
> On Sun, Feb 10, 2013 at 3:33 PM, JVerkuilen (Gmail)
> <[email protected]> wrote:
>> On Fri, Feb 8, 2013 at 10:51 PM, Michael Stewart
>> <[email protected]> wrote:
>
>>> I am trying to find if Stata can import/export data from/to excel in
>>> the form of pivot table for excel.
>>> Can anyone help me .
>>
>> If you would explain what the pivot table is that would help. I seem
>> to recall it's a cross tab (like what Stata generates with
>> -tabulate-), with rows and columns being categories of a nominal
>> variable such as occupation by state. If so Stata "prefers" to have
>> these represented differently. If the pivot was:
>>
>> A1 A2 A3
>> B1 x11 x12 x13
>> B2 x21 x22 x23
>> B3 x31 x32 x33
>>
>> Stata would really prefer you lay out the data as:
>>
>> A B X
>> 1 1 x11
>> 1 2 x21
>> 1 3 x31
>> 2 1 x21
>> 2 2 x22
>> 2 3 x23
>> 3 1 x31
>> 3 2 x32
>> 3 3 x33
>>
>> But it depends a lot on what you intend to do with the data.
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
--
Thank you ,
Yours Sincerely,
Mike.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/