代码拉取完成,页面将自动刷新
同步操作将从 连享会/nwcommands 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{smcl}
{* *! version 1.0.0 11nov2014}{...}
{marker topic}
{helpb nw_topical##manipulation:[NW-2.5] Manipulation}
{title:Title}
{p2colset 9 20 22 2}{...}
{p2col :nwcollapse {hline 2} Collapse a network}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwcollapse}
[{opt (stat)}]
[{it:{help netname}}]
[{cmd:,}
{opth by(varlist)}
{it:{help collapse##table_options:options}}]
{title:Description}
{pstd}
This command collapses a network, i.e. it merges network nodes. It works very similar as {help collapse}. With option {opth by(varname)} one specifies which nodes should
be merged. The rule for collapsing two nodes are specified with {it:stat}, by default {it:stat} = {bf:max} ({help collapse:see here for possible values}). For example, when nodes
A and B are collapsed to node Z, Z inherits all the ties from node A and B.
{marker examples}{...}
{title:Examples}
{pstd}
This collapses the first and the second node of a random network. The collapsed node will have all ties that the original nodes had.
{cmd:. nwrandom 20, prob(.1) name(mynet)}
{cmd:. gen att = _n}
{cmd:. replace att = 1 in 2}
{cmd:. nwcollapse mynet, by(att)}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。