Hi,
I´m a new member on this forum and after reading lots oftherads about mackros wit no results.
I try to run simple data analyse and I would like to keep it simple.
There are few dymmys like:
f f1 f2 f3 f4
Then I can make local macro
local tp f
and run basic_testpattern of many different tests.
tab sex if `tp' == 1
sum age if `tp' == 1
sum age if `tp' == 1 & sex == "male"
sum ege if `tp' == 1 & sex == "female"
.
tab qaly_delta_12 if `tp' == 1 & RR == 1 & sex == "famafe"
.
.
ny
Now I can call this locan macro `tp' to criteria.
But can it be done another way around?
I would like make these 40-80 test lines to be one macro. Then there would be less bosibilities of mistakes. Like:
run `basic_testpattern' when criteria is f == 1
Sorry and thak you.
newbe
jones
I´m a new member on this forum and after reading lots oftherads about mackros wit no results.
I try to run simple data analyse and I would like to keep it simple.
There are few dymmys like:
f f1 f2 f3 f4
Then I can make local macro
local tp f
and run basic_testpattern of many different tests.
tab sex if `tp' == 1
sum age if `tp' == 1
sum age if `tp' == 1 & sex == "male"
sum ege if `tp' == 1 & sex == "female"
.
tab qaly_delta_12 if `tp' == 1 & RR == 1 & sex == "famafe"
.
.
ny
Now I can call this locan macro `tp' to criteria.
But can it be done another way around?
I would like make these 40-80 test lines to be one macro. Then there would be less bosibilities of mistakes. Like:
run `basic_testpattern' when criteria is f == 1
Sorry and thak you.
newbe
jones