我之前做过脚本,我不将列放入脚本中,因此当脚本执行时,它会启动平台并让他们将信息放入,例如:
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 )
)