Re: jsl: come tracciare utilizzando un elenco di gruppi?Molto probabilmente puoi farlo con qualcosa del genere (hai bisogno di EvalEvalExpr):
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Group Columns("group1", {"height", "weight"});
Eval(
EvalExpr(
dt << Oneway(
Y(Expr(dt << Get Column Group("group1"))),
X(:age)
)
)
);
Vedere Inserisci un'espressione in un'altra usando Eval Insert, Eval Expr, Parse e Substitute per ulteriori informazioni ed esempi su Eval(EvalExpr())
Re: jsl: come tracciare utilizzando un elenco di gruppi?
OK, quindi ho questo, ma non sono sicuro di come posso continuare a creare loop e creare nuovi termini all'interno della sezione Y(.
qualche consiglio?
colgroupNames = dt << get column groups names;<BR /><BR />/*plotting a basic Fit YbyX just to get pValues. Formatting and style done on final plot*/<BR />ow1 = Oneway(<BR />Y( dtAggWide<<GET column="" group=""></GET>, dtAggWide<<GET column="" group=""></GET>, dtAggWide<<GET column="" group=""></GET>),<BR />X( :ChamberId ),<BR />//By(:),<BR /><BR />//All pairs Tukey HSD test<BR />All Pairs(<BR />1,<BR />Confidence Quantile( 0 ),<BR />Difference Matrix( 0 ),<BR />LSD Threshold Matrix( 0 ),<BR />Connecting Letters Report( 0 ),<BR />Ordered Differences Report( 1 )<BR />),<BR />//invisible, //use this to speed up.<BR />);dtAggWide = current data table();
dtAggWide << set name( "AggWide");
RecipeStepIndex ={"10.0.0.0.0.0", "11.0.0.0.0.0", "12.0.0.0.0.0"} // column groups names. Each group has 100+ columns.
//trying to create a series of charts using the groups, looping through the groups
ow1 = Oneway(
Y( for( i = 1, i<=Nitems( RecipeStepIndex), i++,
dtAggWide<<GET column="" group=""></GET>Re: jsl: come tracciare utilizzando un elenco di gruppi?quindi ho strappato questa soluzione da @txnelson : https://community.jmp.com/t5/Discussions/Script-multiple-columns-grouped-in-distribution-plot/td-p/162557
ma mi chiedo se c'è un modo per scorrere i nomi dei gruppi piuttosto che fare questa cosa per costruire espressioni.
Names Default To Here( 1 );
dtAggWide = current data table();
dtAggWide << set name( "AggWide");
//get the column groups
colgroupNames = dt << get column groups names;
//temporary string for testing
RecipeStepIndex ={"10.0.0.0.0.0", "11.0.0.0.0.0", "12.0.0.0.0.0"}
// Build a character string that represents the commands that need to be run
theExpr_start = "ow1 = Oneway(
Y( dtAggWide<<GET column="" group=""></GET>Re: jsl: come tracciare utilizzando un elenco di gruppi?Ecco una riscrittura del codice, eliminando la necessità di creare espressioni
Names Default To Here( 1 );
dt = Current Data Table();
dt<< set name( "AggWide" );
//get the column groups and put them into one long list
colgroupNames = dt << get column groups names;
colsList = {};
For( i = 1, i <= N Items( colgroupNames ), i++,
Insert Into( colsList, dt << get column group( colgroupNames[i] ) )
);
//temporary string for testing
RecipeStepIndex = {"10.0.0.0.0.0", "11.0.0.0.0.0", "12.0.0.0.0.0"};
// Build a character string that represents the commands that need to be run
ow1 = Oneway(
Y( Eval( colsList ) )
,
X( :ChamberID ),
//By(:),
//All pairs Tukey HSD test
All Pairs(
1,
Confidence Quantile( 0 ),
Difference Matrix( 0 ),
LSD Threshold Matrix( 0 ),
Connecting Letters Report( 0 ),
Ordered Differences Report( 1 )
),
//invisible, //use this to speed up.
);
Re: jsl: come tracciare utilizzando un elenco di gruppi?Grazie mille, nessuno dei miei post di lettura aveva scoperto che la funzione get aiuta a estrarre tali informazioni.
Ri: jsl: come tracciare utilizzando un elenco di gruppi?Molte grazie che hanno risolto il problema.La lettura del mio post non aveva scoperto la funzione get per estrarre le informazioni richieste.
Ri: jsl: come tracciare utilizzando un elenco di gruppi?Mi dispiace, sto lottando qui.
Non sono sicuro del motivo per cui nidificare l'evalexpr?
non c'è un modo per sostituire il
Y( dtAggWide<<GET column="" group=""></GET>
con un elenco di gruppi di colonne?
Ho precedentemente creato questo elenco, come posso scambiare questo RecipeStepIndex nei gruppi Y
//Build and prefill an Array of names of the RecipeStepId
Summarize( dt, RecipeStepIndex = by( :RecipeStepId) );//get list of unique RecipeStepID's

jsl: come tracciare utilizzando un elenco di gruppi?seguito da questo post: https://community.jmp.com/t5/Discussions/Script-to-loop-thru-and-group-columns-by-name-dynamically/mp/470274#M71439
Sto raggruppando più di 10.000 colonne in gruppi per StepID, ma ora sto provando a tracciarle tutte.
Non riesco proprio a capire come dirgli di tracciare in base all'elenco di tutti i gruppi. qualche consiglio?

/*plotting a basic Fit YbyX just to get pValues. Formatting and style done on final plot*/
ow1 = Oneway(
Y( dtAggWide<<GET column="" group=""></GET>
Miscelazione e pulizia dei dati