代码拉取完成,页面将自动刷新
VERSION 11.0
SYNCHRONOUS_ONLY
INCLUDE _std_medium
INCLUDE header
HELP hlp1, view("help nwdrop")
RESET res1
SCRIPT PREINIT
BEGIN
program initialize
END
DIALOG main, label("nwdrop/nwkeep - Drop or keep networks/nodes") tabtitle("Main")
BEGIN
GROUPBOX gb_main 20 20 370 70, label("")
RADIO rb_drop 30 40 200 ., nomem label("Drop networks") first onclickon(script detailsOff)
RADIO rb_keep 30 60 200 ., nomem label("Keep networks") middle onclickon(script detailsOff)
RADIO rb_dropnodes 170 40 200 ., nomem label("Drop nodes") middle onclickon(script detailsOn)
RADIO rb_keepnodes 170 60 200 ., nomem label("Keep nodes") last onclickon(script detailsOn)
TEXT tx_net1 30 100 200 200, label("Selected networks:")
COMBOBOX cb_net 30 120 270 ., nomem dropdown label("cbNet") contents(netlist) append
TEXT tx_if 50 150 200 ., label("If: (expression)")
EXP ex_if 140 150 230 ., label("Create...")
TEXT tx_att 50 180 200 ., label("Attributes:")
VARLIST vr_att 140 180 230 ., nomem label("Attributes")
CHECKBOX cx_netonly 140 210 200 ., label("Leave Stata variables untouched")
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
LIST netlist_append
BEGIN
// left empty
END
SCRIPT detailsOff
BEGIN
main.tx_if.hide
main.ex_if.hide
main.vr_att.hide
main.tx_att.hide
END
SCRIPT detailsOn
BEGIN
main.tx_if.show
main.ex_if.show
main.vr_att.show
main.tx_att.show
END
PROGRAM initialize
BEGIN
put "_nwdialog nwdrop"
stata hidden immediate
END
PROGRAM command
BEGIN
if main.rb_dropnodes {
put " nwdrop " main.cb_net
require main.ex_if
}
if main.rb_drop {
put " nwdrop " main.cb_net
}
if main.rb_keepnodes {
put " nwkeep " main.cb_net
require main.ex_if
}
if main.rb_keep {
put " nwkeep " main.cb_net
}
if main.ex_if {
ifexp main.ex_if
}
if main.vr_att | main.cx_netonly {
put ", "
if main.vr_att {
put "attributes(" main.vr_att ") "
}
if main.cx_netonly {
put "netonly"
}
}
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。