Some preliminary text.
A code block, not evaluted:
sysuse auto
summarize weight
A code block, evaluted, with ```s:
. sysuse auto
(1978 Automobile Data)
. summarize weight
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
weight | 74 3019.459 777.1936 1760 4840
A code block with ```stata
. summarize price
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
price | 74 6165.257 2949.496 3291 15906
Mean price 6165.3 (using “s”)
Mean price 6165.3 (using “stata”)
A code block with ```{s}
. summarize mpg
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
mpg | 74 21.2973 5.785503 12 41
A code block with ```{stata}
. summarize weight
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
weight | 74 3019.459 777.1936 1760 4840
Mean weight 3019.5 (using “{stata}”)
Mean weight 3019.5 (using “{s}”)
Not to be confused with dyamic code:
Text about sysuse
. Text about stata
?
proc means;
run;