我之前做過腳本,我不將列放入腳本中,因此當腳本執行時,它會啟動平台並讓他們將信息放入,例如:
Fit Model(
Y( ),
Effects( ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run(
:height << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Plot Actual by Predicted( 1 ),
Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
Plot Effect Leverage( 1 ), Box Cox Y Transformation( 0 )}
)
);
這為他們打開了擬合模型平台,供他們輸入信息。
但是當我在生存平台上嘗試這個時它不起作用。
Names Default To Here( 0 );
Clear Log();
dt = Current Data Table();
If( Not( Is Scriptable( dt ) ),
dtsel = Pick File( "Open File", {"JMP|jmp", "All files|*"} );
If( dtsel == "",
Stop(),
Try( dt = Open( dtsel ), Stop() )
);
);
dt<<SURVIVAL></SURVIVAL>為什麼這對生存不起作用?
我在 MacBook 上安裝了 JMP Pro 16.0。
我不確定為什麼它不能與 Survival 一起使用/為什麼它不能與 Fit 模型一起使用,但是您可以嘗試將列定義從 Survival 中排除,似乎為我打開了平台並且它具有(至少一些)設置正確設置
Names Default To Here( 0 );
dt = Open("$SAMPLE_DATA/Rats.jmp");
If( Not( Is Scriptable( dt ) ),
dtsel = Pick File( "Open File", {"JMP|jmp", "All files|*"} );
If( dtsel == "",
Stop(),
Try( dt = Open( dtsel ), Stop() )
);
);
dt << Survival(
Failure Plot( 1 ),
Show Points( 1 ),
Show Shaded Simultaneous CI( 1 ),
Show Simultaneous CI( 1 )
)