Ciao a tutti.
Vorrei un suggerimento per il seguente problema:
Ho due diversi processi (A e
da confrontare e vorrei capire la probabilità di ottenere un errore batch utilizzando il processo A o B.
Confronto le proprietà del batch con due parametri (c e d).
Quindi, voglio avere il parametro "c" maggiore di uguale a 1000 e l'errore batch si ottiene se "d" è inferiore a 70.
Hai suggerimenti?
Non sono del tutto sicuro dei dettagli di ciò che desideri, ma il "passo uno" è quello di mettere in forma i tuoi dati per qualsiasi cosa verrà dopo.
Quindi, quanti dati hai effettivamente? Assomiglia ai dati qui? Taglia e copia la JSL di seguito, fai 'File> Nuovo> Nuovo script', incolla il codice, quindi fai 'Modifica> Esegui script'.
NamesDefaultToHere(1);
// Make some dummy data
dt =
New Table( "Test Data",
Add Rows( 0 ),
New Column( "Process",
Numeric,
"Nominal",
Format( "Best", 12 ),
Formula( Random Integer( 0, 1 ) ),
Value Labels( {0 = "A", 1 = "B"} ),
Use Value Labels( 1 )
),
New Column( "Response c",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 1 ),
Formula(If( :Process == 1, Random Normal( 1100, 50 ), Random Normal( 1050, 100 ))),
Set Property(
"Response Limits",
{Goal( Maximize ), Importance( 1 ), Show Limits( 0 )}
),
Set Property( "Spec Limits", {LSL( 1000 ), Show Limits( 0 )} )
),
New Column( "Response d",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 1 ),
Formula(If( :Process == 1, Random Normal( 90, 20 ),Random Normal( 95, 25 ))),
Set Property(
"Response Limits",
{Goal( Maximize ), Importance( 1 ), Show Limits( 0 )}
),
Set Property( "Spec Limits", {LSL( 70 ), Show Limits( 0 )} )
)
);
dt << addRows(100);
// Make a graph
gb = dt <<
Graph Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :Process ), Y( :Response c ), Y( :Response d ) ),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 9 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 10 ) ) ),
SendToReport(
Dispatch(
{},
"Response c",
ScaleBox,
{Add Ref Line( 1000, "Dashed", "Medium Dark Green", "", 1 )}
),
Dispatch(
{},
"Response d",
ScaleBox,
{Add Ref Line( 70, "Dashed", "Medium Dark Green", "", 1 )}
)
)
);