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%3Efare%20riferimento%20alla%20tabella%20dei%20rapporti%20in%20base%20al%20nome%20della%20tabella%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226407%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Eper%20esempio%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%3Ema%20il%20problema%20%C3%A8%20che%20se%20JMP%20cambia%20o%20si%20verifica%20una%20singolarit%C3%A0%20TableBox%20%5B7%5D%20cambia%20identit%C3%A0%20e%20non%20%C3%A8%20pi%C3%B9%20la%20tablebox%20che%20sto%20cercando%20per%20una%20tabella%20di%20dati%2C%20preferirei%20ad%20es.%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-%20se%20non%20sbaglio%2C%20assegnare%20direttamente%20la%20tabella%20a%20una%20variabile%20come%20nell'esempio%20%C3%A8%20anche%20una%20nuova%20richiesta%20di%20funzionalit%C3%A0.%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%3EGrafica%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EScripting%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%3ERi%3A%20fare%20riferimento%20alla%20tabella%20dei%20rapporti%20in%20base%20al%20nome%20della%20tabella%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226430%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHo%20dimenticato%20di%20commentare%20il%20tuo%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%20ha%20scritto%3A%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-%20se%20non%20sbaglio%2C%20assegnare%20direttamente%20la%20tabella%20a%20una%20variabile%20come%20nell'esempio%20%C3%A8%20anche%20una%20nuova%20richiesta%20di%20funzionalit%C3%A0.%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3ERispettosamente%2C%20penso%20che%20ti%20sbagli.%20Nel%20tuo%20esempio%20sopra%2C%20assumendo%20la%20sintassi%20corretta%20come%20ho%20spiegato%20nel%20mio%20post%20precedente%2C%20la%20variabile%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%20crossvalidation_table%20%3C%2FFONT%3E%20avr%C3%A0%20un%20riferimento%20alla%20tabella%20dati%20creata%20dal%20messaggio%20Crea%20tabella%20dati.%20Forse%20per%C3%B2%20ho%20frainteso%20questa%20parte%20della%20tua%20richiesta.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-226429%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20fare%20riferimento%20alla%20tabella%20dei%20rapporti%20in%20base%20al%20nome%20della%20tabella%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226429%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUN%20%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%20TableBox%20%3C%2FA%3E%20non%20ha%20un%20nome%2C%20ma%20il%20%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%20OutlineBox%20%3C%2FA%3E%20fa.%20Quindi%2C%20la%20migliore%20pratica%20%C3%A8%20%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%20index%20off%20del%20nome%20di%20una%20Outlinebox%20%3C%2FA%3E%20.%20In%20JMP%2014%2C%20quando%20si%20fa%20clic%20con%20il%20pulsante%20destro%20del%20mouse%20su%20un%20tablebox%20e%20%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%20Trasforma%20in%20tabella%20dati%20%3C%2FA%3E%20la%20tabella%20dati%20risultante%20ha%20un'estensione%20%3CEM%3E%20Trasforma%20in%20tabella%20dati%20%3C%2FEM%3E%20script%20che%20mostra%20come%20utilizzare%20OutlineBox%20in%20base%20al%20nome%20per%20arrivare%20a%20TableBox.%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%3ELo%20script%20inserito%20da%20JMP%20utilizza%20l'intero%20albero%20delle%20caselle%20di%20contorno.%20Se%20sei%20sicuro%20che%20ci%20sia%20solo%20una%20casella%20di%20contorno%20con%20il%20nome%20che%20ti%20interessa%20non%20hai%20bisogno%20dell'intero%20albero%3A%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%3ERe%3A%20fare%20riferimento%20alla%20tablebox%20del%20report%20per%20nome%20tabella%20-%20Stato%20modificato%20in%3A%20Archiviato%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560857%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EStiamo%20archiviando%20questa%20richiesta.%20Se%20%C3%A8%20ancora%20importante%2C%20commenta%20con%20dettagli%20aggiuntivi%20e%20riapriremo.%20Grazie!%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!