1 Star 0 Fork 7

夏汉林/nwcommands

forked from 连享会/nwcommands 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nwsummarize.sthlp 2.74 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-02-18 23:41 . v1.1.6D
{smcl}
{* *! version 1.0.4 23aug2014 author: Thomas Grund}{...}
{marker topic}
{helpb nw_topical##information:[NW-2.4] Information}
{title:Title}
{p2colset 9 20 22 2}{...}
{p2col :nwsummarize {hline 2} Summarize a network}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwsummarize}
[{it:{help netlist}}]
[,
{opt mat}
{opt matonly}
{opt detail}
{opth save(filename)}
]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt mat}}Display adjacency matrix of the network{p_end}
{synopt:{opt matonly}}Only display adjacency matrix of the network{p_end}
{synopt:{opt detail}}Calculate additional (time-consuming) network measures, e.g. centralization, transitivity{p_end}
{synopt:{opth save(filename)}}Save network measures in file{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
{cmd:nwsummarize} calculates and displays a variety of network summary statistics.
If no netlist is specified, summary statistics are calculated for
the current network.
{title:Examples}
{cmd:. webnwuse florentine}
{com}. nwsummarize flomarriage
{res}{hline 50}
{txt} Network name: {res} flomarriage
{txt} Network id: {res} 12
{txt} Directed: {res}false
{txt} Nodes: {res}16
{txt} Edges: {res}20
{txt} Minimum value: {res} 0
{txt} Maximum value: {res} 1
{txt} Density: {res} .1666666666666667
{com}. nwclear
. nwrandom 5, prob(.2) name(mynet)
. nwsummarize mynet, mat
{res}{hline 50}
{txt} Network name: {res} mynet
{txt} Network id: {res} 1
{txt} Directed: {res}true
{txt} Nodes: {res}5
{txt} Arcs: {res}5
{txt} Minimum value: {res} 0
{txt} Maximum value: {res} 1
{txt} Density: {res} .25
{txt}1 2 3 4 5
{c TLC}{hline 21}{c TRC}
1 {c |} {res}0 0 0 0 1{txt} {c |}
2 {c |} {res}0 0 0 0 0{txt} {c |}
3 {c |} {res}0 0 0 0 1{txt} {c |}
4 {c |} {res}0 0 0 0 0{txt} {c |}
5 {c |} {res}1 1 0 1 0{txt} {c |}
{c BLC}{hline 21}{c BRC}
{title:Stored results}
{bf:nwsummarize} stores the following in {bf:r()}:
Scalars
{bf:r(id)} internal ID of the network
{bf:r(nodes)} number of nodes in the network
{bf:r(minval)} minimum of tie values
{bf:r(maxval)} maximum of tie values
{bf:r(edges)} number of edges (undirected network)
{bf:r(arcs)} number of arcs (directed network)
{bf:r(edges_sum)} sum of edge values (undirected network)
{bf:r(arcs_sum)} sum of arc values (directed network)
{bf:r(density)} network density
{bf:r(reciprocity)} network reciprocity
{bf:r(transitivity)} network transitivity
Macros
{bf:r(directed)} if network is directed or not (undirected)
{bf:r(name)} name of the network
{title:See also}
{help nwname}, {help nwdyads}, {help nwtriads}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiahanlin/nwcommands.git
git@gitee.com:xiahanlin/nwcommands.git
xiahanlin
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385