Hey everyone,
I'm trying to get the columns names into the process capability platform and have it set the 2 normal mixture distribution as the default.
So first I get the column names
(e.g.
)
collist={};
collist=dt3 << Get Column Names("numeric");
then I loop through the columns in the capability platform:
nw=new window("capability analysis",
for(i=1, i<=n items(collist),i++,
dt3<<Process Capability(
Process Variables(eval(collist[i]) & Dist( Mixture of 2 Normals )),
Moving Range Method( Average of Moving Ranges ),
Nonnormal Capability Method( "Z-Score"n ),
Johnson Distribution Fit Method( Maximum Likelihood ),
Individual Detail Reports( 1 ),
Capability Box Plots( 0 ),
Capability Index Plot( 0 ),
Goal Plot(0),
{(eval(collist[i]) & Dist( Mixture of 2 Normals )) <<
Process Capability Analysis(
Compare Distributions(1, <<Fit Normal,<<Fit Johnson, <<Mixture of 2 Normals, <<Fit SHASH)
)},
SendToReport(
Dispatch(
{"Individual Detail Reports",
char(collist[i])||"(Mixture of 2 Normals) Capability", "Compare Distributions",
"Histogram - Compare Distributions"},
"2",
ScaleBox
),
Dispatch(
{"Individual Detail Reports",
char(collist[i])||"(Mixture of 2 Normals) Capability", "Compare Distributions",
"Histogram - Compare Distributions"},
"3",
ScaleBox
)
)
)
)
);
However, it is not recognizing the distribution portion selection and is thus defaulting to Normal and not checking the other distributions I'm interested in:
Thanks for any input!
Steve