Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: How can I transfer the variable labels to excel using the outsheet command?


From   Neil Shephard <nshephard@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How can I transfer the variable labels to excel using the outsheet command?
Date   Thu, 27 May 2010 10:39:50 +0000

On Thu, May 27, 2010 at 10:27 AM, A Loumiotis
<antonis.loumiotis@gmail.com> wrote:
> Dear Statalist,
>
> When I use the outsheet command the variable names but not the
> variable labels are transferred to excel.
> Is there any way to also transfer the variable labels to excel?

As per the Statalist FAQ, it would be useful if you provided the
_exact_ command you are using.


1. -outsheet- does not have the capacity to write Excel files.  I
suspect you are writing to a CSV (Comma Separate Variables) file and
on your OS (I'll hazard a guess at some M$-Windows variant) this file
extension is associated with M$-Excel so that when double-clicked on
it opens up in that program.

2. The -outsheet- command should be default write out variables that
have labels applied to them using the labels themselves, unless you
have explicitly specified the -nolabel- option (as explained in -man
outsheet-).

So, without knowing what you are doing I suspect you mistakenly using
the -outsheet using filename.csv, comma nolabel- (or similar) syntax,
and if you omit the -nolabel- option you should obtain what you are
after.

Neil

-- 
"... no scientific worker has a fixed level of significance at which
from year to year, and in all circumstances, he rejects hypotheses; he
rather gives his mind to each particular case in the light of his
evidence and his ideas." - Sir Ronald A. Fisher (1956)

Email - nshephard@gmail.com
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index