Include -chartab- in Stata distribution.
-
Login or Register
- Log in with
. display 2 + 3 + 4/2 7
. display 2 + 3 + 4/2 7 . display r(answer)*33
. display 2 + 3 + 4/2 7
. display 2 + 3 + 4/2 7 . display r(answer)*33
. local answer : display 2 + 3 + 4/2 . display `answer'*33 231
. mata ------------------------------------------------- mata (type end to exit) --------------------------------------------------------------------------------------------------------------------------- : answer = 2 + 3 + 4/2 : answer*33 231 : end -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
. local answer : display 2 + 3 + 4/2 . display `answer'*33 231
. mata ------------------------------------------------- mata (type end to exit) --------------------------------------------------------------------------------------------------------------------------- : answer = 2 + 3 + 4/2 : answer*33 231 : end -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*Stores display on r(return) program rdisplay, rclass display `0' local ret:display `0' return scalar return = `ret' end *stores it on scalar with the name you choose program sdisplay, gettoken scn 0:0 display `0' local ret:display `0' scalar `scn'= `ret' end
set obs 1 gen x=1 save stuff1,replace descsave using stuff1,saving(stuff2,replace) fast clear set obs 100000000 gen x=1 save stuff3,replace descsave using stuff3,saving(stuff4,replace) fast
set obs 1 gen x=1 save stuff1,replace descsave using stuff1,saving(stuff2,replace) fast clear set obs 100000000 gen x=1 save stuff3,replace descsave using stuff3,saving(stuff4,replace) fast
Comment