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

st: RE: variable format


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: variable format
Date   Fri, 14 Feb 2003 12:00:20 -0000

Barbara Eberth

> I am trying to merge two datasets but the variable by which 
> I am merging 
> appears in one of the datasets as long format and as double 
> format in 
> the other dataset. Ideally I would like to have these 
> variables in long 
> format. Any idea on how to change from double to long format?

This is a matter of data types, not format sensu Stata. 

. recast long myvar 

It will squawk if there are fractional parts. 

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index