1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwexpand.dlg 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-09-18 19:13 . v1.5.1
VERSION 10.0
SYNCHRONOUS_ONLY
INCLUDE _std_large
INCLUDE _ht350
INCLUDE header
HELP hlp1, view("help nwhomophily")
RESET res1
SCRIPT PREINIT
BEGIN
program initialize
END
SCRIPT POSTINIT
BEGIN
main.ed_new.setvalue "_same"
END
DIALOG main, title("nwexpand - Expand from variable")
BEGIN
CHECKBOX cx_nodes 320 50 100 ., label("Fix nodes:") onclickon(main.sp_nodes.show) onclickoff(main.sp_nodes.hide)
SPINNER sp_nodes 410 50 50 ., label("Nodes") default(10) max(9999) option(nodes)
TEXT tx_var 50 30 150 . , label("Variable (required):")
VARNAME vn_var 50 50 230 ., label("Variable")
TEXT tx_if 50 70 200 ., label("If: (expression)")
EXP ex_if 50 90 230 ., label("Create...")
TEXT tx_exp 50 120 200 . , label("Expand mode:")
COMBOBOX cb_exp 50 140 170 ., label("Mode") onselchangelist(expandaction) contents(expandmode) dropdownlist option(mode)
INCLUDE nw_newnet_opt
END
LIST expandmode
BEGIN
same
dist
distinv
absdist
absdistinv
sender
receiver
END
LIST expandaction
BEGIN
main.ed_new.setvalue "_same"
main.ed_new.setvalue "_dist"
main.ed_new.setvalue "_distinv"
main.ed_new.setvalue "_absdist"
main.ed_new.setvalue "_absdistinv"
main.ed_new.setvalue "_sender"
main.ed_new.setvalue "_receiver"
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
PROGRAM initialize
BEGIN
put "_nwdialog nwhomophily"
stata hidden immediate
END
PROGRAM command
BEGIN
require main.vn_var
put "nwexpand " main.vn_var
if main.ex_if {
ifexp main.ex_if
}
beginoptions
if main.cx_nodes {
optionarg main.sp_nodes
}
optionarg main.cb_exp
option main.cx_xvars
optionarg main.ed_new
optionarg main.ed_labs
optionarg main.ed_vars
endoptions
stata
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385