1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwduplicate.sthlp 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-02-18 23:41 . v1.1.6D
{smcl}
{* *! version 1.0.0 11nov2014}{...}
{marker topic}
{helpb nw_topical##generator:[NW-2.3] Generators}
{title:Title}
{p2colset 9 20 22 2}{...}
{p2col :nwduplicate {hline 2} Duplicate a network}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwduplicate}
[{it:{help netname}}]
[,
{opt name}({it:{help newnetname}})
{opt xvars}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt name}({it:{help newnetname}})}name of the new network{p_end}
{synopt:{opt xvars}}do not generate/overwrite Stata variables{p_end}
{title:Description}
{pstd}
{cmd:nwduplicate} simply duplicates an existing network {it:netname}. By default, the duplicated network is called {it:netname_copy}. It also
duplicates the node labels and the Stata variables of the original network.
{pstd}
For example:
{bf:. webnwuse gang, nwclear}
{bf:. nwduplicate gang}
{bf:. nwname gang_copy}
{bf:. return list}
{pstd}
produces a network called {it:gang_copy}. The same could be done with:
{bf:. webnwuse gang, nwclear}
{bf:. nwgen gang_copy = gang}
{bf:. nwname gang_copy}
{bf:. return list}
{pstd}
However, when {help nwgen} is used, the node labels in {it:gang_copy} are not the same as in network {it:gang} (see the different values for {bf:r(labs)} and {bf:r(vars)} in the
two examples above. This is because {help nwgen} can be much more complicated and ultimately copies the adjacency matrix it derives from a {help netexp:network expression} to a
new network.
{title:See also}
{help nwgenerate}, {help nwsubset}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385