1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwreach.sthlp 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-02-18 23:41 . v1.1.6D
{smcl}
{* *! version 1.0.4 3sept2014}{...}
{marker topic}
{helpb nw_topical##generator:[NW-2.3] Generators}
{marker top2}
{helpb nw_topical##analysis:[NW-2.6] Analysis}
{title:Title}
{p2colset 9 17 22 2}{...}
{p2col :nwreach {hline 2} Calculate reachability network}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwreach}
[{it:{help netname}}]
[{cmd:,}
{opt nosym}
{opth name(string)}
{opt xvars}]
{synoptset 25 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt nosym}}do not symmetrize network before calculation{p_end}
{synopt:{opth name(newnetname)}}name of the new network; default = {it:reach}{p_end}
{synopt:{opt xvars}}do not generate Stata variables{p_end}
{title:Description}
{pstd}
{cmd:nwreach} calculates the reachability network. The dyads {it:x_ij} in the reachibility network take
value 1 when there is at least one path between {it:nodes i} and {it:j} in the original network {help netname}, and
0 if there is no such path.
{pstd}
By default, reachability is calculated on the symmetrized original network.
{title:Examples}
{com}. nwclear
. nwrandom 10, prob(.1)
{com}. nwreach random
{com}. nwsummarize reach, matonly
1 2 3 4 5 6 7 8 9 10
{c TLC}{hline 51}{c TRC}
1 {c |} {res} 0 {txt} {c |}
2 {c |} {res} 1 0 {txt} {c |}
3 {c |} {res} 1 1 0 {txt} {c |}
4 {c |} {res} 1 1 1 0 {txt} {c |}
5 {c |} {res} 1 1 1 1 0 {txt} {c |}
6 {c |} {res} 1 1 1 1 1 0 {txt} {c |}
7 {c |} {res} 1 1 1 1 1 1 0 {txt} {c |}
8 {c |} {res} 0 0 0 0 0 0 0 0 {txt} {c |}
9 {c |} {res} 1 1 1 1 1 1 1 0 0 {txt} {c |}
10 {c |} {res} 1 1 1 1 1 1 1 0 1 0{txt} {c |}
{c BLC}{hline 51}{c BRC}{txt}
{pstd}
In this example, there is basically one isolate node (node 8) who is unconnected from everybody else.
{title:See also}
{help nwgeodesic}, {help nwpath}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385