📄 swilk.hlp
字号:
{smcl}
{* 27jan2005}{...}
{cmd:help swilk}, {cmd:help sfrancia}{right:dialogs: {bf:{dialog swilk}} {bf:{dialog sfrancia}}}
{hline}
{title:Title}
{p2colset 5 18 20 2}{...}
{p2col:{hi:[R] swilk} {hline 2}}Shapiro-Wilk and Shapiro-Francia tests for
normality{p_end}
{p2colreset}{...}
{title:Syntax}
{pstd}
Shapiro-Wilk normality test
{p 8 17 2}
{cmd:swilk}{space 4}{varlist} {ifin} [{cmd:,} {it:options}]
{pstd}
Shapiro-Francia normality test
{p 8 17 2}
{cmd:sfrancia} {varlist} {ifin}
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt:{opth g:enerate(newvar)}}create {it:newvar} containing W test coefficients
{p_end}
{synopt:{opt l:nnormal}}test for three-parameter log normality
{p_end}
{synopt:{opt not:ies}}do not use average ranks for tied values
{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{opt by} may be used with {opt swilk} and {opt sfrancia}; see {helpb by}.
{title:Description}
{pstd}
{opt swilk} performs the Shapiro-Wilk W test for normality, and {opt sfrancia}
performs the Shapiro-Francia W' test for normality. {opt swilk} can be used
with 7<=n<=2000 observations, and {opt sfrancia} can be used with with
5<=n<=5000 observations; see {helpb sktest} for a test allowing a larger
number of observations.
{title:Options}
{dlgtab:Main}
{phang}
{opth generate(newvar)} creates new variable {it:newvar} containing the W
test coefficients.
{phang}
{opt lnnormal} specifies that the test be for three-parameter
log normality, meaning ln(X-k) is tested for normality, where k is calculated
from the data as the value that makes the skewness coefficient zero. When
simply testing ln(X) for normality, do not specify this option. See
{helpb lnskew0} for estimation of k.
{phang}
{opt noties} suppresses use of averaged ranks for tied values when
calculating the W test coefficients.
{title:Examples}
{cmd:. sfrancia chol}
{cmd:. swilk chol}
{cmd:. gen lchol = ln(chol)}
{cmd:. swilk lchol}
{cmd:. lnskew0 lcholk = chol}
{cmd:. swilk lcholk, lnnormal}
{title:Also see}
{psee}
Manual: {bf:[R] swilk}
{psee}
Online: {helpb lnskew0}, {helpb lv}, {helpb sktest}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -