Dear Stata users,
Suppose I want to know the result of the sum of a variable X, in Stata I can use egen command
My question: Is there a command can display directly the result that I wanted, and without generating a new variable? For example:
Thank you very much.
Suppose I want to know the result of the sum of a variable X, in Stata I can use egen command
Code:
egen wanted = total(X)
Code:
display [(or any available command) (wanted = )] total(X)
Comment