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

st: RE: Codebook as codebook can


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: Codebook as codebook can
Date   Tue, 6 Dec 2005 11:01:43 +0100

Gregor:

I am not really sure what your question is: it seems that you already have the solution: Make a do file that reads something like this:

set more off
log using c:\wherever\whatever.log
codebook
desc
fileinfo
tab1 var1-vark
exit

c:\wherever\whatever.log is your codebook.

Furthermore it is generally good practice to leave the raw data raw, and do data manipulations in a do-file and safe the do-file, not the modified data. This will document the changes you made (with any comments you added) and give you an easy way to correct mistakes, which inevitably happen in any data manipulation project.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Fabian, Gregor
Sent: dinsdag 6 december 2005 10:38
To: [email protected]
Subject: st: Codebook as codebook can
in order to get a "complete codebook" i'm trying to create
a log-file with all information of a dataset.
codebook gives me the varname, varlabel, range etc;
fileinfo all values (incl. label) of the variables;
further I'd need a tabulation of (most) vars.
Is there a way to bring it in one file?
 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index