I have done scripts before where I do not put columns into the script so that when the script is executed, it brings up the platform and lets them put the information in, such as:
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 )}
)
);
This brings up the fit model platform for them to enter the information.
But when I try this with the survival platform it does not work.
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(
Y( ),
Grouping( ),
Failure Plot( 1 ),
Show Points( 1 ),
Show Shaded Simultaneous CI( 1 ),
Show Simultaneous CI( 1 )
);Why does this not work for Survival?
I have JMP Pro 16.0 on a MacBook.
I'm not sure why it isn't working with Survival / why it is working with Fit model, but you could try leaving the column definition out from Survival, seemed to open the platform for me and it had (at least some) settings set correctly
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 )
)
I'm not sure why it isn't working with Survival / why it is working with Fit model, but you could try leaving the column definition out from Survival, seemed to open the platform for me and it had (at least some) settings set correctly
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 )
)
Thank you! That worked great!