[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: variable mean and r(mean), why do they differ?
If I want to save the mean of a variable into a new variable, I would first:
.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.
* For searches and help try: