Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Renaming and logs


From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Renaming and logs
Date   Fri, 5 Aug 2005 10:37:18 +0200

Ashish,

1.
You recoded powerpoint to powerpoint2, but had problems with the labels.
You did:
  . recode powerpoint (1 2 3 = 2) (4 5 = 4), gen(powerpoint2) 
  . label values powerpoint2 powerpoint
but the powerpoint label does not correspond to the recoded values.

Do this:
  . recode powerpoint (1 2 3 = 2) (4 5 = 4), gen(powerpoint2) 
  . label define powlabel2 2 "Useful" 4 "Not useful" 6 "Not applicable"
  . label values powerpoint2 powlabel2

Right?


2.
You had problems controlling where to store your log files. Include the
folder name in the -log- command. Assuming that you want to put the
logfile in the c:\tmp folder:
  . log using "c:\tmp\xxx.log"


Hope this helps
Svend

BTW: In general it is a good idea to include only ONE question in each
posting.


__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796
Email: sj@soci.au.dk
__________________________________________ 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index