嗨,也许这属于“愿望清单”部分,但我经常发现保存到数据表中的脚本变得很长并且很难快速阅读。 在下面的示例中,我将单个表格更改为不同的数字格式( {设置格式(“最佳”,2)} ). 这创造了大约 16 个后续个体派遣(..)部分,而不仅仅是像:
For col in table.columns:
Dispatch({"Life Distribution - Compare Groups", "Statistics", "Summary"},
col,
NumberColBox,
{Set Format( "Best", 2 )})如果 JMP 能够创建相同代码的更紧凑版本,那就太好了。
<BR />dt=Open("$SAMPLE_DATA\big class.jmp");<BR />Life Distribution(
Perspective( Compare Groups ),
Y( :height ),
Grouping( :sex ),
Confidence Interval Method( Wald ),
Select Distribution( Distribution, Weibull ),
Select Scale( Weibull ),
Tabbed Report( 0 ),
SendToReport(
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Number failed",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Left Censor",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Interval Censored Failure",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Right Censored",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Mean",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Summary"},
"Std Error",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Group Homogeneity Tests"},
"ChiSquare",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Group Homogeneity Tests"},
"DF",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Group Homogeneity Tests"},
"Prob>ChiSq",
NumberColBox,
{Set Format( "Best", 2 ), Set Conditional Format( "" )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
},
"AICc",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
},
"-2Loglikelihood",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
},
"BIC",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull α",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull α CI Lower",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull α CI Upper",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull β",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull β CI Lower",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Statistics",
"Parameter Estimates", "Parametric Estimate - Weibull"},
"Weibull β CI Upper",
NumberColBox,
{Set Format( "Best", 2 )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Individual Group"},
"",
List Box( 2 ),
{Set Summary Behavior( "Collapse" )}
),
Dispatch(
{"Life Distribution - Compare Groups", "Individual Group"},
"",
List Box( 75 ),
{Set Summary Behavior( "Collapse" )}
)
)
)