The intervals are changing, is it on purpose? First is 10 values but the rest are 11 values.
I would add two formula columns:
- First to calculate category
- Second to calculate dM/dt
Then I would create Summary table and report that.
Start table:
End result:
Here is example script with two calculations for categories and ending up with summary table, this all can also be done interactively from JMP:
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(33),
New Column("Time",
Numeric,
"Continuous",
Format("Best", 12),
Set Values(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33]
)
),
New Column("Mass",
Numeric,
"Continuous",
Format("Best", 12),
Set Values(
[78, 89, 72, 72, 74, 81, 70, 74, 84, 89, 52, 81, 52, 60, 64, 83, 53, 60, 70, 64, 70, 55, 82, 74, 69, 83, 56, 71, 54,
50, 53, 67, 88]
)
)
);
dt << New Column("Category", Numeric, Ordinal,
Formula(Floor((:Time -1) / 10)+1)
);
dt << New Column("Category2", Character, Numeric,
Formula(
Char(Floor((:Time - 1) / 10)*10 + 1) || "-" || Char((Floor((:Time - 1)/ 10)+1) * 10)
)
);
dt << New Column("dmdt", Numeric, Continuous,
Formula((Col Max(:Mass, :Category) - Col Min(:Mass, :Category)) / 10)
);
dt_sum = dt << Summary(
Group(:Category),
Mean(:dmdt),
Freq("None"),
Weight("None"),
statistics column name format("column"),
Link to original data table(0)
);
-Jarmo