help ckvardo 
-------------------------------------------------------------------------------

Title

ckvardo - writes characteristics used by ckvar to a do-file.

Syntax

ckvardo [varlist] using filename [ , stubs(str) replace

Description

ckvardo is a helper command for the ckvar package which dumps all the characteristics used by ckvar to a do-file with default extension of .do. It allows users to create characteristics using ckvaredit as a nice front end, but then apply the characteristics to other, similar datasets.

Options

stubs(str) can be used to specify the stub(s) (prefix(es)) of the characteristics which should be written to the do-file. If omitted, the default value is valid. replace is used to specify that the do-file overwrite any exiting do-file with the same name.

Example(s)

. ckvardo using mychecker saves all characteristics whose names start with valid_ into a do-file named mychecker.do. If the file mychecker.do already exists, ckvardo will refuse to overwrite it and quit.

. ckvardo using mychecker, replace stubs(score valid) saves all characteristics whose names start with either valid_ or score_ into a do-file named mychecker.do. If the file mychecker.do already exists, ckvardo will overwrite it with the new information.

Notes

The do-files which ckvardo generates are ready to run, assuming that all the variables specified in the do-file exist in the current dataset.

If you run a do-file generated by ckvardo to attach characteristics, and then use ckvaredit to edit the characteristics, you will find that fancy formatting such as indentation or continuation will be lost. This is a natural result of running the do-file and cannot be avoided.

Also see

Online: help for ckvar, ckvaredit, dochar

Author

Bill Rising, StataCorp email: brising@stata.com web: http://homepage.mac.com/brising