quarta-feira, 28 de junho de 2017

Graficos de Unifirmidade

Como procurar qualquer assunto no SAS:

Exemplo:
sas quality contyrol sample
Formato geral

sas <assunto de interesse> sample



The ANOM Procedure
Overview
Getting StartedAlternar menu suspenso SyntaxAlternar menu suspenso DetailsAlternar menu suspenso ExamplesAlternar menu suspenso
Creating ANOM Boxcharts from Group Summary Data

(View the complete code for this example.)


Note: See Creating BOXCHARTS from Group Summary Data in the SAS/QC Sample Library.

The previous example illustrates how you can create ANOM charts for means using measurement data. However, in many applications, the data are provided as group summary statistics. This example illustrates how you can use the BOXCHART statement with data of this type.

The following data set (Labels) provides the data from the preceding example in summarized form:


data Labels;
   input Position DeviationL Deviation1 DeviationX
         DeviationM Deviation3 DeviationH DeviationS;
   DeviationN = 10;
   datalines;
1  -0.0647  -0.0362  -0.02234  -0.02620  -0.0016  0.0094  0.02281
2  -0.0332  -0.0201   0.01625   0.02045   0.0438  0.0564  0.03347
3  -0.0440  -0.0139   0.00604   0.00570   0.0285  0.0486  0.02885
4   0.0362   0.0530   0.06473   0.06030   0.0755  0.1073  0.02150
5  -0.0464  -0.0074   0.00813   0.00760   0.0302  0.0374  0.02593
6  -0.0384  -0.0285  -0.01283  -0.00950   0.0017  0.0071  0.01599
;
A listing of Labels is shown in Figure 5.4. There is exactly one observation for each group (note that the groups are still indexed by Position). There are eight summary variables in Labels.

DeviationL contains the group minimums (low values).

Deviation1 contains the 25th percentile (first quartile) of each group.

DeviationX contains the group means.

DeviationM contains the group medians.

Deviation3 contains the 75th percentile (third quartile) of each group.

DeviationH contains the group maximums (high values).

DeviationS contains the group standard deviations.

DeviationN contains the group sample sizes (these are all 10 in this case).


Figure 5.4: The Summary Data Set Labels

The Data Set Labels

Position               DeviationL          Deviation1          DeviationX         DeviationM        Deviation3          DeviationH                DeviationS          DeviationN
1             -0.0647 -0.0362 -0.02234              -0.02620              -0.0016 0.0094   0.02281 10
2             -0.0332 -0.0201 0.01625 0.02045 0.0438   0.0564   0.03347 10
3             -0.0440 -0.0139 0.00604 0.00570 0.0285   0.0486   0.02885 10
4             0.0362   0.0530   0.06473 0.06030 0.0755   0.1073   0.02150 10
5             -0.0464 -0.0074 0.00813 0.00760 0.0302   0.0374   0.02593 10
6             -0.0384 -0.0285 -0.01283              -0.00950              0.0017   0.0071   0.01599 10



You can read this data set by specifying it as a SUMMARY= data set in the PROC ANOM statement, as follows:

ods graphics on;
title 'Analysis of Label Deviations';
proc anom summary=Labels;
   boxchart Deviation*Position / odstitle=title1;
run;
The resulting ANOM boxchart is shown in Figure 5.5.

Note that Deviation is not the name of a SAS variable in the data set but is, instead, the common prefix for the names of the eight summary variables. The suffix characters L, 1, X, M, 3, H, S, and N indicate the contents of the variable. For example, the suffix characters 1 and 3 indicate first and third quartiles. Thus, you can specify three group summary variables in a SUMMARY= data set with a single name (Deviation), which is referred to as the response. The name Position specified after the asterisk is the name of the group-variable.

Figure 5.5: ANOM Chart for Means in Data Set Labels

ANOM Chart for Means in Data Set Labels


In general, a SUMMARY= input data set used with the BOXCHART statement must contain the following variables:


group variable

Nenhum comentário:

Postar um comentário