📄 smooth.hlp
字号:
{smcl}
{* 26jan2005}{...}
{cmd:help smooth} {right:dialog: {bf:{dialog smooth}}}
{hline}
{title:Title}
{p2colset 5 19 21 2}{...}
{p2col:{hi:[R] smooth} {hline 2}}Robust nonlinear smoother{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 15 2}
{cmd:smooth}
{it:smoother}
[{cmd:,}{opt t:wice}]
{varname}
{ifin}
{cmd:,}
{opth g:enerate(newvar)}
{pstd}where {it:smoother} is specified as
{it:Sm}[{it:Sm}[{it:...}]]
and {it:Sm} is one of {p_end}
{c -(}{cmd:1}|{cmd:2}|{cmd:3}|{cmd:4}|{cmd:5}|{cmd:6}|{cmd:7}|{cmd:8}|{cmd:9}{c )-}[{cmd:R}]
{cmd:3}[{cmd:R}]{cmd:S}[{cmd:S}|{cmd:R}][{cmd:S}|{cmd:R}]{it:...}
{cmd:E}
{cmd:H}
{pstd}
Letters may be specified in lowercase if preferred. Examples of
{bind:{it:smoother} [{cmd:,twice}]} include
{pmore}
{cmd:3RSSH} {space 2} {cmd:3RSSH,twice} {space 2} {cmd:4253H} {space 2} {cmd:4253H,twice} {space 2} {cmd:43RSR2H,twice}{p_end}
{pmore}
{cmd:3rssh} {space 2} {cmd:3rssh,twice} {space 2} {cmd:4253h} {space 2} {cmd:4253h,twice} {space 2} {cmd:43rsr2h,twice}
{title:Description}
{pstd}
{opt smooth} applies the specified resistant, nonlinear smoother to {varname}
and stores the smoothed series in {newvar}.
{pstd}
{cmd:smooth} ignores missing values at the beginning and end of the series,
but missing values in the middle are allowed. Leading and trailing missing
values are ignored. If you wish to ignore missing values in the middle of the
series, you must {cmd:drop} the missing observations before using
{cmd:smooth}. Doing so, of course, would violate {cmd:smooth}'s assumption
that observations are equally spaced{hline 2}each observation represents
a year, a quarter, or a month (or a one-year birth-rate category). In
practice, {cmd:smooth} produces good results as long as the spaces between
adjacent observations do not vary too much.
{title:Option}
{phang}
{opth generate(newvar)} is required; it specifies the name of the new variable
that will contain the smoothed values.
{title:Examples}
{phang}{cmd:. smooth 3 coalprdn, gen(smcp)}{p_end}
{phang}{cmd:. smooth 3r coalprdn, gen(smcp)}{p_end}
{phang}{cmd:. smooth 3rss coalprdn, gen(smcp)}{p_end}
{phang}{cmd:. smooth 3rssh3rssh3 coalprdn, gen(sm1)}{p_end}
{phang}{cmd:. smooth 3rssh,twice coalprdn, gen(sm1)}
{phang}{cmd:. smooth 4253eh,twice gnp, gen(sgnp)}
{title:Also see}
{psee}
Manual: {bf:[R] smooth}
{psee}
Online: {helpb lowess}, {help tssmooth}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -