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: RE: Knowing how a variable was generated


From   Louis Boakye-Yiadom <lby_kw@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: RE: Knowing how a variable was generated
Date   Sun, 31 Oct 2010 17:09:53 +0000 (GMT)

Many thanks for the insight. I didn't know about programmes such as -labgen-; I'll read about them. Thanks.

Louis

--- On Sun, 31/10/10, Nick Cox <n.j.cox@durham.ac.uk> wrote:

> From: Nick Cox <n.j.cox@durham.ac.uk>
> Subject: RE: st: RE: Knowing how a variable was generated
> To: "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
> Date: Sunday, 31 October, 2010, 16:46
> There are programs that enable users
> to record definitions of variables as they generate or
> replace them. See e.g. -labgen- from SSC and especially its
> references. 
> 
> More generally, if users employed variable labels or
> characteristics to record the definition of variables --
> then your problem is indeed soluble. 
> 
> I didn't imagine that's what you had in mind, as if you
> knew that definitions were stored that way it's hard to see
> why your question arises. 
> 
> Nick 
> n.j.cox@durham.ac.uk
> 
> 
> Louis Boakye-Yiadom
> 
> Nick, thanks for the reply. I was thinking that if it's
> possible for Stata to store information on the generation of
> the variable (at least in simple cases), it might be
> possible to have this feature in Stata.
> 
> Nick Cox
> 
> > In general, no. How could there be? 
> > 
> > However, in simple cases for Y calculated somehow from
> X,
> > looking at graphs of Y vs  X might give a clue. 
>  
> Louis Boakye-Yiadom
>  
> > If some of the variables in a dataset were generated
> by a
> > transformation or combination of some other
> variable(s) in
> > the data, is it possible to know this without seeing
> the
> > relevant log or do file? For example, consider a
> situation
> > where the variables in the data include A, B, C, and
> D, and
> > B was generated as follows:
> > B = A*C + D
> > Is there a command for determining how B was
> generated?
> 
> *
> *   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/


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