応答制限データテーブル内のすべての列に対するレスポンス制限の目標と重要性を抽出し、それらを列名と一緒に新しいデータテーブルに配置する方法を教えてください。これが私が取り組んでいるスクリプトです。重要性を引き出すことができます。どのように私が先に進み、応答限界から目標を引き出すことができるかについて誰かに私に指示することができますか?ありがとう
dt = Open( "C:\ Users \ MyFile.jmp");
resp =新しいテーブル( "ResponeLimits.jmp"、
新しい列( "ColName"、文字、公称、幅(30))、
新しい列( "目標"、文字、公称、幅(30))、
新しい列( "重要度"、数値、公称)
;
nc = N Col(dt);
(i = 1、i <= nc、i ++、
(Column(dt、i)<< getデータ型()== "Numeric"の場合、
(!が空(x = Column(dt、i)<<プロパティの取得(( "Response Limits")、Show Limits(1)))の場合、
resp <<行を追加(1、N Row(resp));
//(Column(resp、"Goal")[N行(resp)] = x ["Goal"]);
(Column(resp、"Importance")[N行(resp)] = x ["Importance"])を試してください。
Column(resp、"colname")[N行(resp)] = Column(dt、i)<<名前を取得。
)
)
;
応答の制限制限と望ましさを引き出す方法については、下記のスクリプトを参照してください。
names default to here(1);
dt=open("$SAMPLE_DATA\Big Class.jmp");
dt:Height << set property("Response Limits",
{Goal( Maximize ), Lower( 50, 2 ), Middle( 60, 4 ),
Upper( 70, 6 ), Importance( 1 ),Show Limits( 1 )} );
// The list returned from the Response Limits is a complex
// list. It requires special parsing to get the values out.
// Retrive the list
ResLimits = dt:Height << get property("Response Limits");
// To get the complete Lower element I have found that one
// has to reference it in relationship to the absolute
// value of the list
LowerVals = ResLimits[2];
arg(LowerVals,2)
// Now, this element can be parsed using different functions
// in JMP. I will use the Arg() function
LowerResLimit = arg(LowerVals, 1);
LowerResDesirability = arg(LowerVals, 2);応答の制限また、応答限界の下限、中間、上限の望ましさと値を、残りのデータと同じ表に抽出しようとしています。このデータをどのように抽出できるかについて、誰かに教えてもらえますか。ありがとう
応答の制限問題は、Response Limitsから返されたGoal値が文字列ではないということです。 Char()関数を使用してそれを文字列に変換する場合、それはあなたが望むように動作するはずです。
Try( Column( resp, "Goal" )[N Row( resp )] = char(x["Goal"] ));