📄 range.hlp
字号:
{smcl}
{* 30nov2004}{...}
{cmd:help range} {right:dialog: {bf:{dialog range}}}
{hline}
{title:Title}
{p2colset 5 18 21 2}{...}
{p2col :{hi:[D] range} {hline 2}}Generate numerical range{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 14 2}
{cmd:range} {varname} {it:#first} {it:#last} [{it:#obs}]
{title:Description}
{pstd}
{cmd:range} generates a numerical range, which is useful for evaluating and
graphing functions.
{title:Examples}
{phang}{cmd:. drop _all} {space 21} (clear data){p_end}
{phang}{cmd:. range x 0 12.56 100} {space 11} (create 100 obs on x, 0 to 4*pi){p_end}
{phang}{cmd:. gen y = exp(-x/6)*sin(x)} {space 6} (create y = f(x)){p_end}
{phang}{cmd:. line y x} {space 22} (graph the function)
{title:Also see}
{psee}
Manual: {bf:[D] range}
{psee}
Online: {helpb egen}, {helpb obs}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -