Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
bipppp
Level I

Parsing a Named List from Degradation Platform

Hello,

I am using the Analysis>Reliability and Survival>Degradation platform to do some analysis. In my script, I am saving the results, which is output as a Named List by JMP.

 

 

Results = obj << Get Results;
Show(Results); 

 

 

The resultant named list is as follows:

Results = {Model 1 Simple Linear Path(
	{N Param( 5 ), DF( 67 ), SSE( 0.372577539987142 ), AICc( -163.770048207164 ),
	BIC( -153.295808521175 ), RSquare( 0.999768602768815 ),
	Estimates(
		{Beta(
			[0.389607728081622, -1.23431047684725, -0.792888109911265, -0.136038220958541,
			-0.223824276464951]
		), Std Dev(
			[0.00706176641928502, 0.0223919804438757, 0.0223919804438757, 0.0223919804438757,
			0.0223919804438757]
		)}
	)}
)};

From this named list, I would like to extract only the Beta matrix from Estimates. I am not able to use list subscripts for doing this.

Please help!

Thanks

2 REPLIES 2
Highlighted

Re: Parsing a Named List from Degradation Platform

You were on the right tract. The key is to subscript the list, but they are nested. Use this example of the correct syntax:

 

Results = obj << Get Results;

beta = Results["Model 1 Simple Linear Path"]["Estimates"]["Beta"];

 

Learn it once, use it forever!
Highlighted
bipppp
Level I

Re: Parsing a Named List from Degradation Platform

Worked wonderfully! Thank you very much @markbailey 

Article Labels

    There are no labels assigned to this post.