cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
kd_kel
Level I

ANOM

I have an ANOM summary report I generated in JMP. I wanted to extract the Group means in each row of the report and save to a new data table (Run Chart) using JSL scripting, any help ? 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: ANOM

Below are few good options

  1. Use make into datatable and concatenate
  2. Get values into list/matrix, add as many rows as you have in those and use data table subscripting

And here is one possible script for the make into datatable + concatenate

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Drug.jmp");
dt_results = New Table("Results",
	Add Rows(0),
	New Column("FA", Character, Nominal),
	New Column("Pre", Numeric, Continuos),
	New Column("Post", Numeric, Continuos),
	New Column("Shift", Character, Nominal),
	New Column("Date", Numeric, Continuos)
);

ow = dt << Oneway(Y(:y), X(:Drug),
	ANOM(1, Show Summary Report(1), Point Options("Show Needles"))
);

tb = Report(ow)[Outline Box("Analysis of Means Summary"), Table Box(1)];
dt_ow = tb << Make Into Data Table;

Column(dt_ow, "Lower Limit") << Set Name("Pre");
Column(dt_ow, "Group Mean") << Set Name("Post");
dt_ow << Delete Columns({"Level", "Group N", "Upper Limit", "Limit Exceeded"});

dt_results << Concatenate(
	dt_ow,
	"Append To First Table"
);
Close(dt_ow, no save);
-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: ANOM

How does your run_chart_table look like? You could maybe use << Make Into Data table to the Oneway result table and concatenate that.

-Jarmo
kd_kel
Level I

Re: ANOM

I want to assign the group means (pre and post group means )  from the anom summary report table to variables and then paste into pre and post columns of the data table below.

 

kd_kel_1-1721064961662.png

 

 

 

kd_kel_0-1721064911759.png

 

jthi
Super User

Re: ANOM

Below are few good options

  1. Use make into datatable and concatenate
  2. Get values into list/matrix, add as many rows as you have in those and use data table subscripting

And here is one possible script for the make into datatable + concatenate

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Drug.jmp");
dt_results = New Table("Results",
	Add Rows(0),
	New Column("FA", Character, Nominal),
	New Column("Pre", Numeric, Continuos),
	New Column("Post", Numeric, Continuos),
	New Column("Shift", Character, Nominal),
	New Column("Date", Numeric, Continuos)
);

ow = dt << Oneway(Y(:y), X(:Drug),
	ANOM(1, Show Summary Report(1), Point Options("Show Needles"))
);

tb = Report(ow)[Outline Box("Analysis of Means Summary"), Table Box(1)];
dt_ow = tb << Make Into Data Table;

Column(dt_ow, "Lower Limit") << Set Name("Pre");
Column(dt_ow, "Group Mean") << Set Name("Post");
dt_ow << Delete Columns({"Level", "Group N", "Upper Limit", "Limit Exceeded"});

dt_results << Concatenate(
	dt_ow,
	"Append To First Table"
);
Close(dt_ow, no save);
-Jarmo
kd_kel
Level I

Re: ANOM

Thanks jthi !