Dear Statalisters,
If I want to save the mean of a variable into a new variable, I would first:
.sum var1
.gen var2, r(mean)
But if I subtract var1-var2, the outcome is almost, but not exactly "0". How can make sure that both means are equal? I have tried .round, .int. , but that doesn't work. Do I have to change the storage type? Thanks for the advice.
Raoul
*
* 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/