Hello,
I found the below coding as an example on STATA website and I am trying to edit it to fit for the data analysis I need. Stata does not recognize the define command, what am I missing?
Thanks!
dtable, by(heartatk, tests) svy
define(meansd = mean sd, delimiter(" ± "))
define(myiqr = p25 p75, delimiter("-"))
continuous(age, stat(meansd) test(none))
continuous(bmi, stat(meansd))
continuous(bpsystol tcresult, stat(median myiqr))
nformat(%6.0f p25 p75 median) sformat("(%s)" myiqr) nformat(%6.1f mean sd) sformat("%s" sd)
"command define is unrecognized" is the error it gives.
I found the below coding as an example on STATA website and I am trying to edit it to fit for the data analysis I need. Stata does not recognize the define command, what am I missing?
Thanks!
dtable, by(heartatk, tests) svy
define(meansd = mean sd, delimiter(" ± "))
define(myiqr = p25 p75, delimiter("-"))
continuous(age, stat(meansd) test(none))
continuous(bmi, stat(meansd))
continuous(bpsystol tcresult, stat(median myiqr))
nformat(%6.0f p25 p75 median) sformat("(%s)" myiqr) nformat(%6.1f mean sd) sformat("%s" sd)
"command define is unrecognized" is the error it gives.
Comment