📄 obs.hlp
字号:
{smcl}
{* 29nov2004}{...}
{cmd:help obs}
{hline}
{title:Title}
{p2colset 5 16 18 2}{...}
{p2col :{hi:[D] obs} {hline 2}}Increase the number of observations in a
dataset{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 13 2}
{cmd:set}
{opt ob:s}
{it:#}
{title:Description}
{pstd}
{opt set obs} changes the number of observations in the current dataset.
{it:#} must be at least as large as the current number of observations.
If there are variables in memory, the values of all new observations are set
to missing.
{title:Examples}
{phang}{cmd:. drop _all}{space 6}(clear memory) {p_end}
{phang}{cmd:. set obs 100}{space 4}(make 100 observations) {p_end}
{phang}{cmd:. gen x = _n}{space 5}(x = 1, 2, 3, .., 100) {p_end}
{phang}{cmd:. gen y = x^2}{space 4}(y = 2, 4, 9, .., 10000){p_end}
{phang}{cmd:. scatter y x}{space 4}(make a graph) {p_end}
{title:Also see}
{psee}
Manual: {bf:[D] obs}
{psee}
Online: {helpb describe}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -