Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: variable format
From
Joerg Luedicke <[email protected]>
To
[email protected]
Subject
Re: st: variable format
Date
Thu, 10 Mar 2011 15:02:10 -0500
2011/3/10 Andreas Drichoutis <[email protected]>:
> Well it didn't. I tried gen varnew=round(var,.01) and all it did is to
> create a copy of the original variable. Values are displayed with 2 decimals
> but the actual value is 7 decimals long.
>
well, it should work. What happens if you try the following:
clear all
set obs 100
gen x=runiform()+1
gen x2=round(x,.01)
That works for me.
J.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/