_get_offopt.hlp
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 65 行
HLP
65 行
{smcl}
{* 10mar2005}{...}
{cmd:help _get_offopt}{...}
{right:also see: {help undocumented}}
{hline}
{title:Title}
{pstd}
{hi:_get_offopt} {hline 2}
Parsing tool for getting offset option specification
{title:Syntax}
{pstd}
Standard offset variable syntax:
{phang2}
{cmd:_get_offopt} [{it:varname}]
{pstd}
Exposure variable syntax (also known as log offset):
{phang2}
{cmd:_get_offopt} [{opt ln(varname)}]
{title:Description}
{pstd}
{cmd:_get_offopt} is a programming tool that helps identify which option was
used to specify an offset in an estimation command, based on what is typically
put in {cmd:e(offset)}. Basically, {cmd:_get_offopt} looks at the supplied
argument and returns the associated option in {cmd:s(offopt)},
{it:varname} is returned in {cmd:s(offvar)}.
{title:Examples}
{cmd}. sysuse auto, clear
{txt}(1978 Automobile Data)
{cmd}. quietly poisson mpg turn trunk, exposure(gear)
{txt}
{cmd}. di "`e(offset)'"
{res}ln(gear_ratio)
{txt}
{cmd}. _get_offopt `e(offset)'
{txt}
{cmd}. sreturn list
{txt}macros:
s(offvar) : "{res}gear_ratio{txt}"
s(offopt) : "{res}exposure(gear_ratio){txt}"
{title:Also see}
{psee}
Online:
{helpb syntax}
{p_end}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?