1 Star 0 Fork 7

夏汉林/nwcommands

forked from 连享会/nwcommands 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nwdyadprob.dlg 1.83 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 nwdyadprob")
RESET res1
SCRIPT PREINIT
BEGIN
program initialize
END
SCRIPT POSTINIT
BEGIN
main.ed_new.setvalue "_network"
END
DIALOG main, title("nwdyadprob - Network From Tie Probabilities")
BEGIN
RADIO rb_net 40 30 140 ., label("Based on network:") first onclickon(script networkOn) onclickoff(script networkOff)
COMBOBOX cb_net 160 30 150 ., dropdownlist label("Network") contents(netlist) nomem
RADIO rb_matrix 40 60 130 ., label("Based on matrix:") last onclickon(script matrixOn) onclickoff(script matrixOff)
COMBOBOX cb_matrix 160 60 150 ., dropdownlist label("Matrix") contents(matrix) nomem option(mat)
TEXT tx_density 80 90 130 ., label("Density: .")
SPINNER sp_density 150 90 70 ., label("Networks") default(0) max(999)
INCLUDE nw_newnet_opt
GROUPBOX gb_ties 330 30 120 80, label("Arc/edge")
RADIO rb_directed 350 60 100 ., label("Directed") first
RADIO rb_undirected 350 80 120 ., label("Undirected") last option(undirected)
END
SCRIPT networkOff
BEGIN
main.cb_net.hide
END
SCRIPT matrixOff
BEGIN
main.cb_matrix.hide
END
SCRIPT networkOn
BEGIN
main.cb_net.show
END
SCRIPT matrixOn
BEGIN
main.cb_matrix.show
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
PROGRAM initialize
BEGIN
put "_nwdialog nwdyadprob"
stata hidden immediate
END
PROGRAM command
BEGIN
put "nwdyadprob "
if main.rb_net {
put main.cb_net
}
beginoptions
if main.rb_matrix {
require main.cb_matrix
}
optionarg main.cb_matrix
put " density(." main.sp_density ")"
option main.rb_undirected
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/xiahanlin/nwcommands.git
git@gitee.com:xiahanlin/nwcommands.git
xiahanlin
nwcommands
nwcommands
master

搜索帮助