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
FN
FN
Level VI

FPCA summaries via JSL

I would like to save the FPCA summaries automatically using JSL.

 

It seems I need to script the actions by clicking on the menu options.

 

So far, I can create the model with the using this script FPCA

 

// → Data Table( "Fermentation Process" )
Open( "$SAMPLE_DATA/Functional Data/Fermentation Process.jmp" );

Functional Data Explorer(
	Y( :Ethanol ),
	X( :Time ),
	ID( :BatchID ),
	Data Processing( Align 0 to 1 ),
	Direct Functional PCA(
		Functional PCA(
			1,
			FPC Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					Aligned Time( 0.5, N Levels( 100 ), Lock( 1 ), Show( 1 ) ),
					FPC 1( 0, Lock( 0 ), Show( 1 ) ),
					FPC 2( 0, Lock( 0 ), Show( 1 ) ),
					FPC 3( 0, Lock( 0 ), Show( 1 ) ),
					FPC 4( 0, Lock( 0 ), Show( 1 ) ),
					FPC 5( 0, Lock( 0 ), Show( 1 ) )
				)
			)
		)
	)
)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: FPCA summaries via JSL

Try adding the "Save Summaries" command inside the Direct Functional PCA call. I hope this helps!

 

Open( "$SAMPLE_DATA/Functional Data/Fermentation Process.jmp" );

Functional Data Explorer(
	Y( :Ethanol ),
	X( :Time ),
	ID( :BatchID ),
	Data Processing( Align 0 to 1 ),
	Direct Functional PCA(Save Summaries)
);

 

View solution in original post

4 REPLIES 4
jthi
Super User

Re: FPCA summaries via JSL

Using JMP16.1 Pro.

 

If you mean these Function Summaries here:

Make into data table:

jthi_0-1633090542281.png

 

Edit table script:

jthi_1-1633090585093.png

 

Check script and copy paste part you are interested in:

jthi_2-1633090616439.png

Then editing that script should get you to more robust solution.

-Jarmo
FN
FN
Level VI

Re: FPCA summaries via JSL

If you save summaries instead of making a table, you also keep the formulas.

 

FN_0-1633113513879.png

 

FN
FN
Level VI

Re: FPCA summaries via JSL

Running the generated script will stop and ask you for some options.

 

Can you automate accepting the options as well?

 

They all work except "Save formulas"

FN_1-1633113707320.png

 

Re: FPCA summaries via JSL

Try adding the "Save Summaries" command inside the Direct Functional PCA call. I hope this helps!

 

Open( "$SAMPLE_DATA/Functional Data/Fermentation Process.jmp" );

Functional Data Explorer(
	Y( :Ethanol ),
	X( :Time ),
	ID( :BatchID ),
	Data Processing( Align 0 to 1 ),
	Direct Functional PCA(Save Summaries)
);