cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lisamaley
Level III

Survival

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Survival

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 )
)
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Survival

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 )
)
-Jarmo
lisamaley
Level III

Re: Survival

Thank you!  That worked great!