我想创建一个脚本,询问用户的字符和数字输入,然后将其保存在骨架表中,并由另一个使用该值进行计算的表引用 - 请。我可以完成所有单独的任务,比如创建一个窗口/表格/文本框/计算,但我不能让它们一起工作。
这感觉就像一个不同的问题,答案取决于细节。不过,这个脚本可能会给你一些想法:
NamesDefaultToHere(1);
// Get some data
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Fit model dialog
fmd = dt << Fit Model(
Y( :height ),
Effects( :weight ),
Personality( "Standard Least Squares" ),
Run
);
// Run the model
fmo = fmd << Run();
// Save the prediction formula to a new column, 'nc'
nc = fmo << SaveColumns(Prediction Formula(1));
// Get the estimates parameters into a new table
est = fmo << getEstimates;
dt2 = asTable(Transpose(est), << columnNames({"Intercept", "Slope"}));
dt2 << setName("Parameter Estimates");