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
powerpuff
Level IV

Add predicted columns to the data table

I have a script in my JMP table named "Outlier Analysis". I open the script, hit the little red triangle and select Save Columns--> Prediction Formula. How can I script this? 

Here is my approach:

 

dt = current data table();
a = Eval( dt << get table property( "Outlier Analysis" ) ); 
abc = a << Report;
abc << prediction formula;

 

10 REPLIES 10
powerpuff
Level IV

Re: Add predicted columns to the data table

@gzmorgan0 One more question, I have already fitted scripts that have Fit groups, not fit models. How can I add studentized residuals for them to the data table? My approach: try adding all fit models in the fit group to a list and pass that list to add residuals. The script does not work for now, but is this the correct way ahead? Also, if possible can you point me out to where I am going wrong in this script?

 

dt = Current Data Table();
ft = dt << Run Script( "Outlier Analysis" );
ftList = Substitute( ftList, Expr( FitGroup() ), Expr( {} ) );
Print( Head( ftList ) );
//For(i=1, i<=NItems(ftList),i++,
//ftList[i] << Studentized Residuals;
//);
;