Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.질문이 무엇인지 잘 모르겠습니다. 내 예제가 제대로 작동하는 것 같습니다(또는 누락된 항목이 있을 수 있음).
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Job Satisfaction.jmp");
obj = dt << Fit Model(
Y(:Satisfaction_Avg),
Effects(
:Support_L, :Goal_L, :Work_L, :Interact_L, :Person_C,
:Interact_L * :Person_C
),
Personality( "Proportional Hazard" ),
Emphasis("Effect Leverage"),
Run(
:Satisfaction_Avg << {Summary of Fit(1), Analysis of Variance(1),
Parameter Estimates(1), Scaled Estimates(0), Plot Actual by Predicted(1),
Plot Regression(0), Plot Residual by Predicted(1),
Plot Studentized Residuals(0), Plot Effect Leverage(1),
Plot Residual by Normal Quantiles(0), Box Cox Y Transformation(0)}
)
);
col_switcher = obj << Column Switcher(
:Person_C,
{:Person_C, :Intra_C, :Inter_C, General_S}
);


Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.부록: Column Switcher 기능이 각 변수로 새로운 효과 요약 테이블을 생성하기를 바랐습니다.스크립트는 첫 번째 변수와 잘 작동하며 열 전환기를 통해 수동으로 스크롤하여 다른 변수를 볼 수 있습니다.목록을 수동으로 스크롤할 필요가 없습니다.이것이 가능한가?
Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.빠른 답변 감사합니다.귀하의 스크립트를 내 스크립트에 통합했는데 같은 문제가 발생했습니다.출력 테이블에는 Two_Deoxyuridine에 대한 결과만 포함되고 스위치 목록의 다른 변수는 포함되지 않습니다.스크립트를 실행했는데 예상대로 작동합니다.
이 스크립트에서 제가 잘못 생각하고 있는 부분이 있나요?
애나벨
obj = dt << Fit Model(
Y( :dthtt ),
Effects(
:race1c, :PC1, :PC2, :PC3, :age2c, :gender1, :bmi2c.x, :chol2.x, :curalc2.x, :pkyrs2c.x, :dbp2c.x,
:sbp2c.x, :creatin1.x, :glucos2c.x, :APOE_INT, :Two_Deoxyuridine_INT,
:APOE_INT * :Two_Deoxyuridine_INT
),
Personality( "Proportional Hazard" ),
Emphasis( "Effect Leverage" ),
Censor( :dth ),
Censor Code( "0" ),
Run(
:dthtt << {Summary of Fit( 1 ), Analysis of Variance( 1 ), Parameter Estimates( 1 ),
Scaled Estimates( 0 ), Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
)
);
ColumnSwitcherObject = obj << Column Switcher(
:Two_Deoxyuridine_INT,
{:One_5_Anhydroglucitol_INT, :Two_Deoxyuridine_INT,
:Two_Hydroxybutyric acid_INT, :Two_Hydroxyglutaric acid_INT,
:Two_ketoisovaleric acid_INT, :Three_Hydroxybutyric acid_INT, :Five_MTHF_INT, Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.나는 발전하고 있다!내 주요 목표는 모든 열 전환 후 Effect Wald Test 데이터 테이블을 얻는 것입니다. 결국 이 테이블들을 연결할 것입니다.아래 코드는 열 전환기를 자동으로 시작하고(로그에서 볼 수 있음) Effect Wald 테스트 데이터 테이블을 생성하지만 열 전환기의 첫 번째 항목에 대해서만 생성합니다.전환될 때 각 열에서 Effect Wald Test 데이터 테이블을 가져오는 방법에 대한 아이디어가 있습니까?
obj = dt << Fit Model(
Y( :dthtt ),
Effects(
:race1c, :PC1, :PC2, :PC3, :age2c, :gender1, :bmi2c.x, :chol2.x, :curalc2.x, :pkyrs2c.x, :dbp2c.x,
:sbp2c.x, :creatin1.x, :glucos2c.x, :APOE_INT, :One_5_Anhydroglucitol_INT,
:APOE_INT * :One_5_Anhydroglucitol_INT
),
Personality( "Proportional Hazard" ),
Censor( :dth ),
Censor Code( "0" ),
Run(
:dthtt << {Summary of Fit( 1 ), Analysis of Variance( 1 ), Parameter Estimates( 1 ),
Scaled Estimates( 0 ), Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
)
);
ColumnSwitcher = obj << Column Switcher(
:One_5_Anhydroglucitol_INT,
{:One_5_Anhydroglucitol_INT, :Two_Deoxyuridine_INT, :Two_Hydroxybutyric acid_INT,
:Two_Hydroxyglutaric acid_INT, :Dummy variable_INT}
);
pre = Function( {currentColumn, nextColumn, switcher},
Print(
"Before switch: " || (currentColumn << get name) || " >> " || (nextColumn << get name) ||
" [Column Switcher] current: " || (columnSwitcher << Get Current)
);
If( nextColumn << get name == "Dummy variable_INT",
0,
1
);
);
post = Function( {previousColumn, currentColumn, switcher},
Print(
"After switch: " || (previousColumn << get name) || " >> " || (currentColumn << get name) ||
" [Column Switcher] current: " || (columnSwitcher << Get Current)
)
);
columnSwitcher << Make Column Switch Handler( pre, post );
ColumnSwitcher << Set Script(
obj = Data Table( "MESA 2018Events_Exam2Main_Proteomics_Metabolomics_MARCH 13 2023" ) <<
Fit Model(
Y( :dthtt ),
Effects(
:race1c, :PC1, :PC2, :PC3, :age2c, :gender1, :bmi2c.x, :chol2.x, :curalc2.x, :pkyrs2c.x, :dbp2c.x,
:sbp2c.x, :creatin1.x, :glucos2c.x, :APOE_INT, :One_5_anhydroglucitol_INT,
:APOE_INT * :One_5_anhydroglucitol_INT
),
Personality( "Proportional Hazard" ),
Censor( :dth ),
Censor Code( "0" ),
Run( Likelihood Ratio Tests( 0 ) ),
Column Switcher(
:One_5_anhydroglucitol_INT,
{:One_5_Anhydroglucitol_INT, :Two_Deoxyuridine_INT, :Two_Hydroxybutyric acid_INT,
:Two_Hydroxyglutaric acid_INT, :Dummy variable_INT}
)
);
Report( obj )["Effect Wald Tests", Table Box( 1 )] << Make Into Data Table;
obj << Close Window;
);
ColumnSwitcher << Run;
Wait( 5/*seconds, while it animates*/ );Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.안녕하세요
내 문제를 해결하고 스크립트가 첨부되었습니다.한 가지 팁은 기본 테이블에 더미 변수 열을 배치하고 열 전환을 위한 최종 변수 뒤에 배치하는 것이었습니다.이를 통해 컬럼 스위치가 적절하게 작동할 수 있었습니다.내 다음 단계는 모든 Effect Wald Tests 데이터 테이블을 연결하는 것인데 이것이 어렵지 않을 것이라고 생각합니다.이 스크립트가 커뮤니티의 다른 사람들에게 유용하기를 바랍니다.
애나벨
Re: 스크립트의 열 전환 기능은 첫 번째 변수만 보고합니다.안녕하세요,
연결된 데이터 테이블을 제공하기 위해 열 전환기 기능에 대한 최종 스크립트를 제공했습니다.테이블을 연결하는 방법에 대해 JMP 지원팀의 도움을 받았습니다. 이것이 다른 사람들에게 도움이 되기를 바랍니다.
애나벨
스크립트의 열 전환기 기능은 첫 번째 변수만 보고합니다.안녕하세요,
다음 스크립트는 전환을 위한 첫 번째 변수(Two_deoxyuridine)가 포함된 하나의 출력 보고서를 반환하지만 스위치 목록의 다른 변수는 반환하지 않습니다.저는 Scripting Index, YouTube 동영상, JMP 커뮤니티, Jump into JMP의 여러 장을 읽고 해결책을 찾았습니다.For 루프를 삽입하는 솔루션이 있습니까?JMP17을 사용하고 있습니다.
모든 도움에 감사드립니다.
애나벨
obj = dt << Fit Model(
Y( :dthtt ),
Effects(
:race1c, :age2c, :gender1, :APOE_INT, :Two_Deoxyuridine_INT,
:APOE_INT * :Two_Deoxyuridine_INT
),
Personality( "Proportional Hazard" ),
Censor( :dth ),
Censor Code( "0" ),
Run( Likelihood Ratio Tests( 0 ) )
);
ColumnSwitcherObject = obj << Column Switcher(
:Two_Deoxyuridine_INT,
{:One_5_Anhydroglucitol_INT, :Two_Deoxyuridine_INT, :Two_Hydroxybutyric acid_INT,
:Two_Hydroxyglutaric acid_INT}
);자동화 및 스크립팅품질 및 프로세스 엔지니어링