Description Usage Arguments Value Methods (by class) Examples
This function applies a network statistic function to a NetSet
or NetSampleSet
object, and returns the calculated network statistics.
1 2 3 4 5 6 7 8 9 | net_stat_apply(netSet, net.stat.fun, net.stat.fun.args, net.stat.name)
## S4 method for signature 'NetSet'
net_stat_apply(netSet, net.stat.fun, net.stat.fun.args,
net.stat.name)
## S4 method for signature 'NetSampleSet'
net_stat_apply(netSet, net.stat.fun, net.stat.fun.args,
net.stat.name)
|
netSet |
A |
net.stat.fun |
The network statistic function |
net.stat.fun.args |
A list of additional arguments to the network statistic function |
net.stat.name |
A descriptive name for the network statistic (defaults to deparsed name of statistic function) |
A NetStatSet
or NetSampleStatSet
NetSet
: net_stat_apply for NetSet
NetSampleSet
: Converter for NetSampleSet
1 2 3 4 5 | data(GroupA)
GroupA_Net = as_NetSample(GroupA, 1:20, node.variables = list(community = c(rep(1, 10), rep(2,10))),
sample.variables = list(group = c(rep(1, 10), rep(2,10))))
Jackknife_GroupA_Net = net_apply(GroupA_Net, node_jackknife)
GlobEff_GroupA_Net = net_stat_apply(Jackknife_GroupA_Net, global_efficiency)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.