📄 _get_offopt.hlp
字号:
{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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -