在循环中创建控制图你好,
我有一个大型数据表,我需要为其创建控制图。我需要为每个列创建一个新的控制图,数据表中的第一列是样本标签。
我搜索并发现了类似的帖子,我试图为我的目的重新创建,但没有任何运气。如果有人能告诉我我的代码哪里出错了会很棒。
我仍然是jmp脚本的新手,所以请随时告诉我,我是否也使用草率语法。
Current Data Table(dt5);
Rcols = dt5 << GetColumnNames(Numeric);
nw= New Window("Control Charts", myVLB = V List Box());
For(i=1, i<=nitems(Rcols), i++,
cc = Control Chart(
Sample Label( Column(dt5, Rcols[1] ) ),
KSigma( 3 ),
Chart Col( Column( Rcols[i] ) ),
Levey Jennings);
myVLB << Append(Report(cc));
);
Re:在循环中创建控制图太棒了,谢谢你!
Re:在循环中创建控制图试试这个
Names Default To Here( 1 );
dt5 = Current Data Table();
Rcols = dt5 << GetColumnNames( Numeric );
nw = New Window( "Control Charts", myVLB = V List Box() );
For( i = 1, i <= N Items( Rcols ), i++,
cc = Control Chart(
Sample Label( Column( dt5, Rcols[1] ) ),
KSigma( 3 ),
Chart Col( Column( dt5, Rcols[i] ), Levey Jennings )
);
myVLB << Append( Report( cc ) );
cc << close window;
);