Bookmark and Share

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]

st: RE: RE: hiding value labels


From   "Radwin, David" <dradwin@rti.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: hiding value labels
Date   Tue, 10 Dec 2013 18:22:07 -0500

Laurence,

If you want to toggle showing labels in the data editor, you could use create a new label language without associated labels like this:


* labels shown
sysuse nlsw88,clear
browse race married collgrad

* labels hidden
label language blank, new
browse race married collgrad

* labels shown again
label language default
browse race married collgrad


One of my professors used to say, "Famous sayings migrate to famous mouths," which is why (in the US at least) so many quotations are erroneously attributed to Mark Twain, Abraham Lincoln, Winston Churchill, or Albert Einstein. I won't name the professor in case he appropriated that quotation from someone else!

David
--
David Radwin, Senior Research Associate
Education and Workforce Development
RTI International
2150 Shattuck Ave. Suite 800, Berkeley, CA 94704
Phone: 510-665-8274

www.rti.org/education

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Laurence (DataTreat Gmail)
> Sent: Tuesday, December 10, 2013 2:24 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: hiding value labels
> 
> Thanks Nick, useful but would really like my cake and eat it: labels
> available for tables etc., but hidden when looking in data editor (just
> bone
> idle).
> 
> (And thanks Nick and others re quote: I'm thinking how best to adjust my
> attribution appropriately, but I always liked the idea this is something
> Albert Einstein had in mind.)
> 
> Regards
> Laurence
> 
> 
> Laurence Lester
> Adelaide, South Australia
> 
> -----Original Message-----
> Date: Tue, 10 Dec 2013 02:20:45 +0000
> From: Nick Cox <njcoxstata@gmail.com>
> Subject: hiding value labels [was: Re: st: Re: Apologies: Test#6]
> 
> foreach v of var * {
>    label val `v'  .
> }
> 
> should undo all associations of variables and value labels. Don't
> - -save- the data in that form unless you really mean it.
> 
> Nick
> njcoxstata@gmail.com
> 
> P.S. Your quotation is often attributed to Einstein, but Alice
> Calaprice in the authoritative "The ultimate quotable Einstein"
> Princeton U.P. 2011 p.475 found no source. In any case the principle
> is as least as old as Ockham's Razor.
> 
> 
> *
> *   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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index