cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-226407%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E9%80%9A%E8%BF%87%E8%A1%A8%E5%90%8D%E5%BC%95%E7%94%A8%E6%8A%A5%E5%91%8A%E8%A1%A8%E6%A1%86%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226407%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BE%8B%E5%A6%82%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eplt%20%3D%20fit%20model(%3CPARAMS%3E)%3B%20rpt%20%3D%20plt%20%26lt%3B%26lt%3B%20report%3B%20rpt(TableBox%5B7%5D)%20%26lt%3B%26lt%3B%20make%20data%20table()%3B%3C%2FPARAMS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E4%BD%86%E6%98%AF%E9%97%AE%E9%A2%98%E6%98%AF%EF%BC%8C%E5%A6%82%E6%9E%9CJMP%E5%8F%91%E7%94%9F%E6%9B%B4%E6%94%B9%E6%88%96%E5%8F%91%E7%94%9F%E5%A5%87%E5%BC%82%E6%80%A7%EF%BC%8CTableBox%20%5B7%5D%E6%9B%B4%E6%94%B9%E4%BA%86%E8%BA%AB%E4%BB%BD%E5%B9%B6%E4%B8%94%E4%B8%8D%E5%86%8D%E6%98%AF%E6%88%91%E5%9C%A8%E6%95%B0%E6%8D%AE%E8%A1%A8%E4%B8%AD%E4%BD%BF%E7%94%A8%E7%9A%84%E8%A1%A8%E6%A1%86%EF%BC%8C%E5%88%99%E5%B8%8C%E6%9C%9B%E4%BD%BF%E7%94%A8%E4%BE%8B%E5%A6%82%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ecrossvalidation_table%20%3D%20rpt(TableBox%5B%22Crossvalidation%22%5D)%20%26lt%3B%26lt%3B%20make%20data%20table()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E-%E5%A6%82%E6%9E%9C%E6%88%91%E6%B2%A1%E8%AE%B0%E9%94%99%E7%9A%84%E8%AF%9D%EF%BC%8C%E5%83%8F%E5%9C%A8eg%E4%B8%AD%E4%B8%80%E6%A0%B7%E7%9B%B4%E6%8E%A5%E5%B0%86%E8%A1%A8%E5%88%86%E9%85%8D%E7%BB%99%E5%8F%98%E9%87%8F%E4%B9%9F%E6%98%AF%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E5%8A%9F%E8%83%BD%E8%AF%B7%E6%B1%82%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-226407%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E5%9B%BE%E5%BD%A2%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-226430%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8C%89%E8%A1%A8%E5%90%8D%E7%A7%B0%E5%BC%95%E7%94%A8%E6%8A%A5%E8%A1%A8%E8%A1%A8%E6%A1%86%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226430%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E5%BF%98%E4%BA%86%E8%AF%84%E8%AE%BA%E4%BD%A0%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16087%22%20target%3D%22_blank%22%3E%20%40benjaminbuck%20%3C%2FA%3E%E5%86%99%E9%81%93%EF%BC%9A%20%3CBR%20%2F%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ecrossvalidation_table%20%3D%20rpt(TableBox%5B%22Crossvalidation%22%5D)%20%26lt%3B%26lt%3B%20make%20data%20table()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E-%E5%A6%82%E6%9E%9C%E6%88%91%E6%B2%A1%E8%AE%B0%E9%94%99%E7%9A%84%E8%AF%9D%EF%BC%8C%E5%83%8F%E5%9C%A8eg%E4%B8%AD%E4%B8%80%E6%A0%B7%E7%9B%B4%E6%8E%A5%E5%B0%86%E8%A1%A8%E5%88%86%E9%85%8D%E7%BB%99%E5%8F%98%E9%87%8F%E4%B9%9F%E6%98%AF%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E5%8A%9F%E8%83%BD%E8%AF%B7%E6%B1%82%E3%80%82%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%E6%81%AD%E5%96%9C%EF%BC%8C%E6%88%91%E6%83%B3%E4%BD%A0%E9%94%99%E4%BA%86%E3%80%82%E5%9C%A8%E4%B8%8A%E9%9D%A2%E7%9A%84%E7%A4%BA%E4%BE%8B%E4%B8%AD%EF%BC%8C%E5%81%87%E8%AE%BE%E6%88%91%E5%9C%A8%E4%B9%8B%E5%89%8D%E7%9A%84%E6%96%87%E7%AB%A0%E4%B8%AD%E8%A7%A3%E9%87%8A%E4%BA%86%E6%AD%A3%E7%A1%AE%E7%9A%84%E8%AF%AD%E6%B3%95%EF%BC%8C%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%20crossvalidation_table%20%3C%2FFONT%3E%E5%B0%86%E5%85%B7%E6%9C%89%E5%AF%B9%E2%80%9C%E4%BD%BF%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%E6%B6%88%E6%81%AF%E5%88%9B%E5%BB%BA%E7%9A%84%E6%95%B0%E6%8D%AE%E8%A1%A8%E7%9A%84%E5%BC%95%E7%94%A8%E3%80%82%E4%B9%9F%E8%AE%B8%E6%88%91%E8%AF%AF%E8%A7%A3%E4%BA%86%E6%82%A8%E8%AF%B7%E6%B1%82%E7%9A%84%E8%BF%99%E4%B8%80%E9%83%A8%E5%88%86%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-226429%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8C%89%E8%A1%A8%E5%90%8D%E7%A7%B0%E5%BC%95%E7%94%A8%E6%8A%A5%E8%A1%A8%E8%A1%A8%E6%A1%86%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226429%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%B8%80%E4%B8%AA%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2F14-2%2Ftable-boxes.shtml%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E8%A1%A8%E6%A0%BC%E6%A1%86%3C%2FA%3E%E6%B2%A1%E6%9C%89%E5%90%8D%E5%AD%97%EF%BC%8C%E4%BD%86%E6%98%AF%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2F14-2%2Foutline-boxes.shtml%232145184%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E8%BD%AE%E5%BB%93%E6%A1%86%3C%2FA%3E%E5%81%9A%E3%80%82%E5%9B%A0%E6%AD%A4%EF%BC%8C%E6%9C%80%E4%BD%B3%E5%81%9A%E6%B3%95%E6%98%AF%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2F14-2%2Fdisplay-box-object-references.shtml%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E5%A4%A7%E7%BA%B2%E6%A1%86%E7%9A%84%E5%90%8D%E7%A7%B0%E7%B4%A2%E5%BC%95%3C%2FA%3E%20%E3%80%82%E5%9C%A8JMP%2014%E4%B8%AD%EF%BC%8C%E5%BD%93%E6%82%A8%E5%8F%B3%E9%94%AE%E5%8D%95%E5%87%BB%E8%A1%A8%E6%A0%BC%E6%A1%86%E6%97%B6%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2F14-2%2Freformat-report-tables.shtml%2365927%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E6%94%BE%E5%85%A5%E6%95%B0%E6%8D%AE%E8%A1%A8%3C%2FA%3E%E7%BB%93%E6%9E%9C%E6%95%B0%E6%8D%AE%E8%A1%A8%E6%9C%89%E4%B8%80%E4%B8%AA%3CEM%3E%E6%94%BE%E5%85%A5%E6%95%B0%E6%8D%AE%E8%A1%A8%3C%2FEM%3E%E8%AF%A5%E8%84%9A%E6%9C%AC%E6%98%BE%E7%A4%BA%E5%A6%82%E4%BD%95%E6%8C%89%E5%90%8D%E7%A7%B0%E4%BD%BF%E7%94%A8OutlineBox%E8%BF%9B%E5%85%A5TableBox%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JMPScreenSnapz043.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMPScreenSnapz043.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMPScreenSnapz043.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19383i35BD99C32946D9D5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMPScreenSnapz043.png%22%20alt%3D%22JMPScreenSnapz043.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%5CBig%20Class.jmp%22%20)%3B%0A%0ANames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%20%22Validation%22%2C%0A%20Character%2C%0A%20%22Nominal%22%2C%0A%20Formula(%20If(%20Random%20Uniform()%20%26gt%3B%200.2%2C%20%220%22%2C%20%221%22%20)%20)%2C%0A%20Value%20Labels(%20%7B%220%22%20%3D%20%22Training%22%2C%20%221%22%20%3D%20%22Validation%22%7D%20)%2C%0A%20Use%20Value%20Labels(%201%20)%2C%0A%0A)%3B%0A%0Afm%20%3D%20Fit%20Model(%0A%20Validation(%20%3AValidation%20)%2C%0A%20Y(%20%3Aweight%20)%2C%0A%20Effects(%20%3Aage%2C%20%3Asex%2C%20%3Aheight%20)%2C%0A%20Personality(%20%22Standard%20Least%20Squares%22%20)%2C%0A%20Set%20Alpha%20Level(%200.1%20)%2C%0A%20Emphasis(%20%22Effect%20Leverage%22%20)%2C%0A%20Run(%0A%20%20%3Aweight%20%26lt%3B%26lt%3B%20%7BSummary%20of%20Fit(%201%20)%2C%20Analysis%20of%20Variance(%201%20)%2C%20Parameter%20Estimates(%201%20)%2C%0A%20%20Scaled%20Estimates(%200%20)%2C%20Plot%20Actual%20by%20Predicted(%201%20)%2C%20Plot%20Regression(%200%20)%2C%0A%20%20Plot%20Residual%20by%20Predicted(%201%20)%2C%20Plot%20Studentized%20Residuals(%200%20)%2C%0A%20%20Plot%20Effect%20Leverage(%201%20)%2C%20Plot%20Residual%20by%20Normal%20Quantiles(%200%20)%2C%0A%20%20Box%20Cox%20Y%20Transformation(%200%20)%7D%0A%20)%0A)%3B%0A%0Arpt%20%3D%20Report(%20fm%20)%3B%0Arpt%5BOutline%20Box(%20%22Response%20weight%22%20)%5D%5BOutline%20Box(%20%22Whole%20Model%22%20)%5D%5B%0AOutline%20Box(%20%22Crossvalidation%22%20)%5D%5BTable%20Box(%201%20)%5D%20%26lt%3B%26lt%3B%20Make%20Into%20Data%20Table%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EJMP%E6%94%BE%E7%BD%AE%E5%9C%A8%E9%82%A3%E9%87%8C%E7%9A%84%E8%84%9A%E6%9C%AC%E4%BD%BF%E7%94%A8%E5%A4%A7%E7%BA%B2%E6%A1%86%E7%9A%84%E6%95%B4%E4%B8%AA%E6%A0%91%E3%80%82%E5%A6%82%E6%9E%9C%E7%A1%AE%E5%AE%9A%E5%8F%AA%E6%9C%89%E4%B8%80%E4%B8%AA%E8%BD%AE%E5%BB%93%E6%A1%86%E5%B8%A6%E6%9C%89%E6%82%A8%E6%84%9F%E5%85%B4%E8%B6%A3%E7%9A%84%E5%90%8D%E7%A7%B0%EF%BC%8C%E5%88%99%E4%B8%8D%E9%9C%80%E8%A6%81%E6%95%B4%E6%A3%B5%E6%A0%91%EF%BC%9A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Erpt%5BOutline%20Box(%20%22Crossvalidation%22%20)%5D%5BTable%20Box(%201%20)%5D%20%26lt%3B%26lt%3B%20Make%20Into%20Data%20Table%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-560857%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%8C%89%E8%A1%A8%E5%90%8D%E5%BC%95%E7%94%A8%E6%8A%A5%E5%91%8A%E8%A1%A8%E6%A1%86%20-%20%E7%8A%B6%E6%80%81%E6%9B%B4%E6%94%B9%E4%B8%BA%EF%BC%9A%E5%B7%B2%E5%AD%98%E6%A1%A3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560857%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E4%BB%AC%E6%AD%A3%E5%9C%A8%E5%BD%92%E6%A1%A3%E6%AD%A4%E8%AF%B7%E6%B1%82%E3%80%82%E5%A6%82%E6%9E%9C%E8%BF%99%E4%BB%8D%E7%84%B6%E5%BE%88%E9%87%8D%E8%A6%81%EF%BC%8C%E8%AF%B7%E8%AF%84%E8%AE%BA%E5%B9%B6%E6%8F%90%E4%BE%9B%E5%85%B6%E4%BB%96%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E9%87%8D%E6%96%B0%E6%89%93%E5%BC%80%E3%80%82%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
0 Kudos

refer to report tablebox by table name

e.g. 

plt = fit model(<params>); rpt = plt << report; rpt(TableBox[7]) << make data table();

but the trouble is if JMP changes or a singularity occurs TableBox[7] changes identity and is no longer the tablebox I'm after for a data table, would prefer e.g. 

crossvalidation_table = rpt(TableBox["Crossvalidation"]) << make data table();

-- if I'm not mistaken, directly assigning the table to a variable as in the e.g. is also a new feature request.

3 Comments
Jeff_Perkinson
Community Manager

A TableBox doesn't have a name, but the OutlineBox does. So, the best practice is to index off of the name of an Outlinebox. In JMP 14, when you right click on a tablebox and Make Into Data Table the resulting data table has a Make into Data Table script that shows how to use the OutlineBox by name to get to the TableBox.

 

JMPScreenSnapz043.png

 

dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "Validation",
	Character,
	"Nominal",
	Formula( If( Random Uniform() > 0.2, "0", "1" ) ),
	Value Labels( {"0" = "Training", "1" = "Validation"} ),
	Use Value Labels( 1 ),

);

fm = Fit Model(
	Validation( :Validation ),
	Y( :weight ),
	Effects( :age, :sex, :height ),
	Personality( "Standard Least Squares" ),
	Set Alpha Level( 0.1 ),
	Emphasis( "Effect Leverage" ),
	Run(
		:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ), Parameter Estimates( 1 ),
		Scaled Estimates( 0 ), Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);

rpt = Report( fm );
rpt[Outline Box( "Response weight" )][Outline Box( "Whole Model" )][
Outline Box( "Crossvalidation" )][Table Box( 1 )] << Make Into Data Table;

The script that JMP puts there uses the whole tree of outline boxes. If you're sure there's only one outline box with the name you're interested in you don't need the whole tree:

rpt[Outline Box( "Crossvalidation" )][Table Box( 1 )] << Make Into Data Table;

 

Jeff_Perkinson
Community Manager

I forgot to comment on your 


@benjaminbuck wrote:
crossvalidation_table = rpt(TableBox["Crossvalidation"]) << make data table();

-- if I'm not mistaken, directly assigning the table to a variable as in the e.g. is also a new feature request.


Respectfully, I think you are mistaken. In your example above, assuming the correct syntax as I explained in my earlier post, the variable crossvalidation_table will have a reference to the data table created by the Make Data Table messge. Perhaps I've misunderstood this part of your request though.

Ryan_Gilmore
Community Manager
Status changed to: Archived
We are archiving this request. If this is still important please comment with additional details and we will reopen. Thank you!