Higdon, Keith M. (modulo deprecated MIME/HTML)
> Is there a way to use the gen edate function to transform numerous
> date fields into elapsed dates with different variable names?
Other answers have not addressed the issue of multiple variables.
For that, I recommend a -foreach- loop and some systematic name
change such as a prefix:
foreach v of var <varlist> {
gen e`v' = <function call>
}
Nick
[email protected]
*
* 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/