📄 mds_estat.dlg
字号:
/*
mds_estat
*! VERSION 1.0.1 31mar2005
*/
VERSION 9.0
INCLUDE _std_large
INCLUDE header
HELP hlp1, view("help mds postestimation")
RESET res1
DIALOG main, tabtitle("Main") ///
label("estat - Postestimation tools for mds, mdsmat, and mdslong")
BEGIN
TEXT tx_subcmd _lft _top _cwd1 ., ///
label("Reports and statistics: (subcommand)")
LISTBOX lb_subcmd @ _ss _iwd 70, ///
contents(main_subcommand_contents) ///
values(main_subcommand_values) ///
onselchangelist(main_subcommand_scripts)
DEFINE holdy 110
// config options
SPINNER sp_maxlength _lft holdy _spwd ., ///
label("Maximum number of characters for displaying object names") ///
min(5) max(100) default(12) option(maxlength)
TEXT tx_maxlength _spsep @ _sprb ., ///
label("Maximum number of characters for displaying object names")
CHECKBOX ck_format _lft _ms _iwd ., ///
onclickon(script main_format_on) ///
onclickoff(script main_format_off) ///
label("Specify the display format:")
EDIT ed_format _indent2 _ss _en7wd ., ///
option(format) label("Display format")
BUTTON bn_format _cken7sep @ _cken7r2 ., ///
label("Help format...") onpush(view help format##|_new)
// corrections options - reuse maxlength and format
CHECKBOX ck_nototal _lft _ms _iwd ., ///
label("Suppress the overall summary statistics") ///
option(nototal)
// pairwise options - reuse maxlength
CHECKBOX ck_notransform _lft _ms _iwd ., ///
label("Suppress the linear transformation of the dissimilarities") ///
option(notransform)
CHECKBOX ck_full @ _ms @ ., ///
label("Display a row for all pairs (j1,j2)") ///
option(full)
CHECKBOX ck_sep @ _ms @ ., ///
label("Draw separating lines corresponding to changes in the first of the pair of objects") ///
option(separator)
// quantiles options - reuse maxlength, format, nototal, and notransform
// stress options - reuse maxlength, format, nototal, and notransform
// summarize options
CHECKBOX ck_labels @ _ms @ ., ///
label("Display variable labels") ///
option(labels)
END
LIST main_subcommand_contents
BEGIN
"Coordinates of the approximating configuration (config)"
"Correlations between dissimilarities and approximating distances (correlations)"
"Pairwise dissimilarities, approximating distances, and raw residuals (pairwise)"
"Quantiles of the residuals per object (quantiles)"
"Kruskal stress/loss measure (stress)"
"Summarize estimation sample (summarize - not available after mdsmat)"
END
LIST main_subcommand_values
BEGIN
config
correlations
pairwise
quantiles
stress
summarize
END
LIST main_subcommand_scripts
BEGIN
script sel_config
script sel_correlations
script sel_pairwise
script sel_quantiles
script sel_stress
script sel_summarize
END
SCRIPT sel_config
BEGIN
script main_config_on
END
SCRIPT sel_correlations
BEGIN
script main_corrections_on
END
SCRIPT sel_pairwise
BEGIN
script main_pairwise_on
END
SCRIPT sel_quantiles
BEGIN
script main_quantiles_stress_on
END
SCRIPT sel_stress
BEGIN
script main_quantiles_stress_on
END
SCRIPT sel_summarize
BEGIN
script main_summarize_on
END
// Begin on scripts
SCRIPT main_config_on
BEGIN
//show maxlength
main.sp_maxlength.show
main.tx_maxlength.show
//show format with position
main.ck_format.show
main.ed_format.show
main.bn_format.show
main.ck_format.setposition . 140 . .
main.ed_format.setposition . 160 . .
main.bn_format.setposition . 160 . .
//hide other options
main.ck_nototal.hide
main.ck_notransform.hide
main.ck_full.hide
main.ck_sep.hide
main.ck_labels.hide
END
SCRIPT main_corrections_on
BEGIN
//show maxlength
main.sp_maxlength.show
main.tx_maxlength.show
//show format with position
main.ck_format.show
main.ed_format.show
main.bn_format.show
main.ck_format.setposition . 140 . .
main.ed_format.setposition . 160 . .
main.bn_format.setposition . 160 . .
//show nototal with position
main.ck_nototal.show
main.ck_nototal.setposition . 190 . .
//hide other options
main.ck_notransform.hide
main.ck_full.hide
main.ck_sep.hide
main.ck_labels.hide
END
SCRIPT main_pairwise_on
BEGIN
//show maxlength and other options
main.sp_maxlength.show
main.tx_maxlength.show
main.ck_notransform.setposition . 140 . .
main.ck_full.setposition . 165 . .
main.ck_sep.setposition . 190 . .
main.ck_notransform.show
main.ck_full.show
main.ck_sep.show
//hide nototal
main.ck_nototal.hide
//hide format
main.ck_format.hide
main.ed_format.hide
main.bn_format.hide
main.ck_labels.hide
END
SCRIPT main_quantiles_stress_on
BEGIN
//show maxlength
main.sp_maxlength.show
main.tx_maxlength.show
//show format
main.ck_format.setposition . 140 . .
main.ed_format.setposition . 160 . .
main.bn_format.setposition . 160 . .
main.ck_format.show
main.ed_format.show
main.bn_format.show
//show nototal and notransform
main.ck_nototal.setposition . 190 . .
main.ck_notransform.setposition . 215 . .
main.ck_nototal.show
main.ck_notransform.show
//hide others
main.ck_full.hide
main.ck_sep.hide
main.ck_labels.hide
END
SCRIPT main_summarize_on
BEGIN
//show labels
main.ck_labels.setposition . 110 . .
main.ck_labels.show
//hide others
main.sp_maxlength.hide
main.tx_maxlength.hide
main.ck_format.hide
main.ed_format.hide
main.bn_format.hide
main.ck_nototal.hide
main.ck_notransform.hide
main.ck_full.hide
main.ck_sep.hide
END
SCRIPT main_format_on
BEGIN
main.ed_format.enable
main.bn_format.enable
END
SCRIPT main_format_off
BEGIN
main.ed_format.disable
main.bn_format.disable
END
PROGRAM command
BEGIN
put "estat "
put main.lb_subcmd
beginoptions
// config options
optionarg /hidedefault main.sp_maxlength
if main.ck_format {
require main.ed_format
optionarg main.ed_format
}
// corrections options
option main.ck_nototal
// pairwise options
option main.ck_notransform
option main.ck_full
option main.ck_sep
// Quantiles and stress options - reused
// Summarize options
option main.ck_labels
endoptions
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -