代码拉取完成,页面将自动刷新
同步操作将从 连享会/nwcommands 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{smcl}
{* *! version 1.0.6 23aug2014 author: Thomas Grund}{...}
{marker topic}
{helpb nw_topical##generator:[NW-2.3] Generators}
{marker top2}
{helpb nw_topical##manipulation:[NW-2.5] Manipulation}
{title:Title}
{p2colset 9 20 22 2}{...}
{p2col :nwtranspose {hline 2} Transpose a network}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwtranspose}
[{it:{help netname}}]
[{cmd:,}
{cmd:name}({it:{help newnetname}})
{opt xvars}
{opt noreplace}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt name}({it:{help newnetname}})}name of the new transposed network; default = {it:_transp_netname}{p_end}
{synopt:{opt xvars}}do not produce Stata variables{p_end}
{synopt:{opt noreplace}}create a new network instead of changing the original one{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
Simply transposes a network, i.e. a directed tie from node {it:i} to node {it:j} is transformed in a
directed tie from node {it:j} to node {it:i}. By default, {cmd:nwtranspose} replaces a network, but you
can specify that it should create a new network instead ({bf:noreplace}).
{title:Examples}
{com}. nwclear
. nwrandom 5, prob(.3) name(net)
{com}. nwsummarize net, matonly
{res} {txt}1 2 3 4 5
{c TLC}{hline 21}{c TRC}
1 {c |} {res}0 0 1 0 0{txt} {c |}
2 {c |} {res}1 0 0 0 0{txt} {c |}
3 {c |} {res}0 0 0 1 0{txt} {c |}
4 {c |} {res}1 1 0 0 1{txt} {c |}
5 {c |} {res}0 0 1 0 0{txt} {c |}
{c BLC}{hline 21}{c BRC}
{com}. nwtranspose net, name(net_transp)
{com}. nwsummarize net_transp, matonly
{res} {txt}1 2 3 4 5
{c TLC}{hline 21}{c TRC}
1 {c |} {res}0 1 0 1 0{txt} {c |}
2 {c |} {res}0 0 0 1 0{txt} {c |}
3 {c |} {res}1 0 0 0 1{txt} {c |}
4 {c |} {res}0 0 1 0 0{txt} {c |}
5 {c |} {res}0 0 0 1 0{txt} {c |}
{c BLC}{hline 21}{c BRC}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。