1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwhierarchy.ado 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-12-10 10:45 . v1.6.4
capture program drop nwhierarchy
program nwhierarchy
syntax [anything(name=netname)] [, dismat(string) disnet(string) linkage(string) type(string) context(string) clear add * ]
_nwsyntax `netname'
if "`clear'" == "" & "`add'" == "" {
local add = "add"
}
if "`linkage'" == "" {
local linkage = "singlelinkage"
}
if "`dismat'" == "" {
local dismat "mymat"
if "`disnet'" != "" {
nwtomatafast `disnet'
mata: st_matrix("`dismat'", `r(mata)')
}
else {
nwdissimilar `netname', type(`type') context(`context') name(_temp_dissimilar)
nwtomatafast _temp_dissimilar
mata: st_matrix("`dismat'", `r(mata)')
nwdrop _temp_dissimilar
}
}
clustermat `linkage' `dismat', `options' `add' `clear'
qui nwload `netname', labelonly
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385