こんにちはJMPコミュニティ、
JMP 16.1 / Windows 10 Pro
どうやら単純な問題で解決できません。 次のスクリプト(機能しません)では、RESPONSESCREENINGプラットフォームからX変数に列のリストを渡そうとしています。 連結された文字列変数の使用は機能しません。 したがって、列リスト(scol)をRESPONSE SCREENINGプラットフォームを実行するための有効な引数に変換するにはどうすればよいですか?
Names Default to Here (1);
dt = Data table ("MYTABLE");
scol = dt << Get Selected Columns;
rse = expr (dt << Response Screening(Y(:RESPONSE), X(_Xs_), PValues Table on Launch(0)));
X_string = "";
for (i = 1, i <= N Items (scol), i++,
Insert into (X_string, scol [i]);
if (i < N items (scol), Insert into (X_string, ","), Continue ());
);
show (X_string); // The column names are stripped of the preceding quotes and following n (my column names are complex and include special characters)
rsx = substitute (Name Expr (rse), Expr (_Xs_),X_string);
show (rsx);
rs = Eval (rsx); //Fails because of Bad X argument
rsr = Report (rs);
ノート
正しい構文は次のようになります。
Response Screening(
Y( :RESPONSE ),
X(
:"X1_MOLECULE A [M_ID 001]"n, :"X2_MOLECULE B [M_ID 002]"n,
:"X3_MOLECULE A [M_ID 0056]"n
),
PValues Table on Launch( 0 )
)
ありがとう。
一番、
TS