代码拉取完成,页面将自动刷新
{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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。