You can have Unicode named ado program too, not recommended since it can easily mess up the namespace, but you can, for example
save the above into a file called 线性回归.ado, which by the way, is the Chinese translation of "linear regression", then the following works,
Code:
*! version 1.0.0 17oct2019 program 线性回归, byable(onecall) prop(svyb svyj svyr bayes) if _by() { local by "by `_byvars'`_byrc0':" } `by' regress `0' end exit
Code:
. sysuse auto (1978 Automobile Data) . 线性回归 mpg price Source | SS df MS Number of obs = 74 -------------+---------------------------------- F(1, 72) = 20.26 Model | 536.541807 1 536.541807 Prob > F = 0.0000 Residual | 1906.91765 72 26.4849674 R-squared = 0.2196 -------------+---------------------------------- Adj R-squared = 0.2087 Total | 2443.45946 73 33.4720474 Root MSE = 5.1464 ------------------------------------------------------------------------------ mpg | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | -.0009192 .0002042 -4.50 0.000 -.0013263 -.0005121 _cons | 26.96417 1.393952 19.34 0.000 24.18538 29.74297 ------------------------------------------------------------------------------
Comment