Learn R Programming

netjack (version 1.0.0)

network_functions: Network Manipulation Functions

Description

These functions take a Net object, manipulate the network in some way, and return a list of modified Net objects.

node_jacknife. Removes each node in turn from the Net, and returns a list of jackknifed Net objects.

network_jackknife - Removes each subnetwork in turn from the Net, and returns a list of jackknifed Net objects

absolute_threshold - Applies a series of absolute thresholding to target network, returning a binary network.

relative_threshold - Applies a relative threshold based on target density to target network

Usage

node_jackknife(Net)

network_jackknife(Net, network.variable)

absolute_threshold(Net, thresholds)

relative_threshold(Net, percentiles)

Arguments

Net

Network to jackknife

network.variable

Character name of node variable containing network labels

thresholds

Vector of thresholds to use

percentiles

Vector of densities to threshold at

Value

A list of Net objects

Examples

Run this code
# NOT RUN {
data(GroupA)
GroupA1_Net = as_Net(GroupA[[1]], "1", list(community = c(rep(1, 10), rep(2,10))))
node_jackknife(GroupA1_Net)
network_jackknife(GroupA1_Net, "community")
# }

Run the code above in your browser using DataLab