📄 _e2r.ado
字号:
*! version 1.0.1 03jan2005
program _e2r, rclass
version 9
syntax [, ///
XMACros(namelist) ///
XSCAlars(namelist) ///
XMATrices(namelist) ///
ADD ///
]
// save the macros
local macros : e(macros)
local macros : list macros - xmacros
foreach name of local macros {
return local `name' `"`e(`name')'"'
}
// save the scalars
local scalars : e(scalars)
local scalars : list scalars - xscalars
foreach name of local scalars {
return scalar `name' = e(`name')
}
// save the matrices
local matrices : e(matrices)
local matrices : list matrices - xmatrices
tempname mat
foreach name of local matrices {
matrix `mat' = e(`name')
return matrix `name' `mat'
}
if "`add'" != "" {
// NOTE: do not use -return add- since it will not overwrite
// stuff already existing in r().
// save the macros
local macros : r(macros)
foreach name of local macros {
return local `name' `"`r(`name')'"'
}
// save the scalars
local scalars : r(scalars)
foreach name of local scalars {
return scalar `name' = r(`name')
}
// save the matrices
local matrices : r(matrices)
foreach name of local matrices {
matrix `mat' = r(`name')
return matrix `name' `mat'
}
}
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -