I am trying to add two means of two different variables without creating a new variable for example mean p1 + mean p2 , how do i do that?
-
Login or Register
- Log in with
sum p1 p2
sysuse auto, clear mata : mean(st_data(. , tokens("turn trunk"))) 1 2 +-----------------------------+ 1 | 39.64864865 13.75675676 | +-----------------------------+ . mata : rowsum(mean(st_data(. , tokens("turn trunk")))) 53.40540541
Comment