📄 qc.hlp
字号:
{smcl}
{* 10mar2005}{...}
{cmd:help qc}, {cmd:help cchart}, {cmd:help pchart}, {right:dialogs: {bf:{dialog cchart}} {bf:{dialog pchart}} {bf:{dialog rchart}}}
{cmd:help rchart}, {cmd:help xchart}, {cmd:help shewhart} {right: {bf:{dialog xchart}} {bf:{dialog shewhart}} {space 5}}
{hline}
{title:Title}
{p2colset 5 15 17 2}{...}
{p2col :{hi:[R] qc} {hline 2}}Quality control charts{p_end}
{p2colreset}{...}
{title:Syntax}
{phang}
Draw a c chart
{p 8 15 2}
{cmd:cchart} {it:defect_var} {it:unit_var} [{cmd:,} {it:{help qc##cchart_options:cchart_options}}]
{phang}
Draw a p (fraction-defective) chart
{p 8 15 2}
{cmd:pchart} {it:reject_var} {it:unit_var} {it:ssize_var}
[{cmd:,} {it:{help qc##pchart_options:pchart_options}}]
{phang}
Draw an R (range or dispersion) chart
{p 8 15 2}
{cmd:rchart} {varlist} {ifin} [{cmd:,} {it:{help qc##rchart_options:rchart_options}}]
{phang}
Draw an X-bar (control line) chart
{p 8 15 2}
{cmd:xchart} {varlist} {ifin} [{cmd:,} {it:{help qc##xchart_options:xchart_options}}]
{phang}
Draw vertically aligned X-bar and R charts
{p 8 17 2}
{cmd:shewhart} {varlist} {ifin} [{cmd:,} {it:{help qc##shewhart_options:shewhart_options}}]
{synoptset 25 tabbed}{...}
{marker cchart_options}{...}
{synopthdr :cchart_options}
{synoptline}
{syntab :Plot}
INCLUDE help gr_markopt
{synopt :{it:{help connect_options}}}affect rendition of the plotted points{p_end}
{syntab :Control limits}
{synopt :{opth clop:ts(cline_options)}}affect rendition of the control limits{p_end}
{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{synoptset 25 tabbed}{...}
{marker pchart_options}{...}
{synopthdr :pchart_options}
{synoptline}
{syntab :Main}
{synopt :{opt sta:bilized}}stabilize the p chart when sample sizes are unequal{p_end}
{syntab :Plot}
INCLUDE help gr_markopt
{synopt :{it:{help connect_options}}}affect rendition of the plotted points{p_end}
{syntab :Control limits}
{synopt :{opth clop:ts(cline_options)}}affect rendition of the control limits{p_end}
{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{bf:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{synoptset 25 tabbed}{...}
{marker rchart_options}{...}
{synopthdr :rchart_options}
{synoptline}
{syntab :Main}
{synopt :{opt st:d(#)}}user-specified standard deviation{p_end}
{syntab :Plot}
INCLUDE help gr_markopt
{synopt :{it:{help connect_options}}}affect rendition of the plotted points{p_end}
{syntab :Control limits}
{synopt :{opth clop:ts(cline_options)}}affect rendition of the control limits{p_end}
{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{hi:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{synoptset 25 tabbed}{...}
{marker xchart_options}{...}
{synopthdr :xchart_options}
{synoptline}
{syntab :Main}
{synopt :{opt st:d(#)}}user-specified standard deviation{p_end}
{synopt :{opt m:ean(#)}}user-specified mean{p_end}
{synopt :{opt lo:wer(#)} {opt up:per(#)}}lower and upper limits of the X-bar limits{p_end}
{syntab :Plot}
INCLUDE help gr_markopt
{synopt :{it:{help connect_options}}}affect rendition of the plotted points{p_end}
{syntab :Control limits}
{synopt :{opth clop:ts(cline_options)}}affect rendition of the control limits{p_end}
{syntab :Add plot}
{synopt :{opth "addplot(addplot_option:plot)"}}add other plots to the generated graph{p_end}
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help twoway_options}}}any options other than {opt by()} documented in {bind:{hi:[G]} {it:twoway_options}}{p_end}
{synoptline}
{p2colreset}{...}
{synoptset 25 tabbed}{...}
{marker shewhart_options}{...}
{synopthdr :shewhart_options}
{synoptline}
{syntab :Main}
{synopt :{opt st:d(#)}}user-specified standard deviation{p_end}
{synopt :{opt m:ean(#)}}user-specified mean{p_end}
{syntab :Plot}
INCLUDE help gr_markopt
{synopt :{it:{help connect_options}}}affect rendition of the plotted points{p_end}
{syntab :Control limits}
{synopt :{opth clop:ts(cline_options)}}affect rendition of the control limits{p_end}
{syntab :Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{synopt :{it:{help graph combine:combine_options}}}any options documented in {bind:{bf:[G] graph combine}}{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
These commands provide standard quality-control charts. {cmd:cchart} draws a
c chart; {cmd:pchart}, a p (fraction-defective) chart; {cmd:rchart},
an R (range or dispersion) chart; {cmd:xchart}, draws an X-bar (control line)
chart; and {cmd:shewhart}, vertically aligned X-bar and R charts.
{title:Options}
{dlgtab:Main}
{phang}{opt stabilized} stabilizes the p chart when sample sizes are
unequal.
{phang}{opt std(#)} specifies the standard deviation of the process. The R
chart is calculated (based on the range) if this option is not specified.
{phang}{opt mean(#)} specifies the grand mean, which is calculated if not
specified.
{phang}{opt lower(#)} and {opt upper(#)} must be specified together or not at
all. They specify the lower and upper limits of the X-bar chart.
Calculations based on the mean and standard deviation (whether specified by
option or calculated) are used otherwise.
{dlgtab:Plot}
INCLUDE help gr_markoptf
{phang}
{it:connect_options} affect whether lines connect the plotted points and the
rendition of those lines; see {it:{help connect_options}}.
{dlgtab:Control limits}
{phang}
{opt clopts(cline_options)} affect the rendition of the control limits; see
{it:{help cline_options}}.
{dlgtab:Add plot}
{phang}
{opt addplot(plot)} provides a way to add other plots to the generated
graph; see {it:{help addplot_option}}.
{dlgtab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{phang}
{it:twoway_options} are any of the options documented in
{it:{help twoway_options}}, excluding {cmd:by()}. These include options for
titling the graph (see {it:{help title_options}}) and options for saving the
graph to disk (see {it:{help saving_option}}).
{phang}
{it:combine_options} ({cmd:shewhart} only) are any of the options documented
in {helpb graph combine}. These include options for titling the graph
(see {it:{help title_options}}) and options for saving the graph to disk (see
{it:{help saving_option}}).
{title:Example: {cmd:cchart}}
{pstd}
Assume that the variable {cmd:sample} contains the sample identification
number and {cmd:defects} contains the number of defects in the sample:
{phang2}
{cmd:. cchart defects sample, title(c Chart for Subassemblies)}
{title:Example: {cmd:pchart}}
{pstd}
Assume that the variable {cmd:day} contains the day of the inspection (1, 2,
...), {cmd:rejects} contains the number rejected, and {cmd:ssize} contains the
number inspected:
{phang2}
{cmd:. pchart rejects day ssize}
{title:Example: {cmd:rchart}}
{pstd}
Assume that we take six samples of 5 observations each. Variables {cmd:m1}
through {cmd:m5} contain the measurements for each sample:
{phang2}
{cmd:. rchart m1-m5, connect(l)}
{title:Example: {cmd:xchart}}
{pstd}
Using the same data as for {cmd:rchart}:
{phang2}
{cmd:. xchart m1-m5, connect(l)}
{title:Example: {cmd:shewhart}}
{pstd}
Using the same data as for {cmd:rchart}:
{phang2}
{cmd:. shewhart m1-m5, connect(l)}
{title:Also see}
{psee}
Manual: {bf:[R] qc}
{psee}
Online: {helpb graph}, {helpb serrbar}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -