Learn R Programming

backbone (version 1.4.0)

fixedcol: Compute fixed column sums / Poisson binomial backbone probabilities

Description

`fixedcol` computes the probability of observing a higher or lower edge weight using the Poisson binomial distribution. Once computed, use backbone.extract to return the backbone matrix for a given alpha value.

Usage

fixedcol(B, method = "RefinedNormal")

Arguments

B

graph: An unweighted bipartite graph object of class matrix, sparse matrix, igraph, edgelist, or network object. Any rows and columns of the associated bipartite matrix that contain only zeros are automatically removed before computations.

method

string: Specifies the method of the Poisson Binomial distribution computation used by the ``ppbinom" function in PoissonBinomial-Distribution. "RefinedNormal" gives quick, very accurate approximations, while "DivideFFT" gives the quickest exact computations.

Value

backbone, a list(positive, negative, summary). Here `positive` is a matrix of probabilities of edge weights being equal to or above the observed value in the projection, `negative` is a matrix of probabilities of edge weights being equal to or below the observed value in the projection, and `summary` is a data frame summary of the inputted matrix and the model used including: model name, number of rows, skew of row sums, number of columns, skew of column sums, and running time.

Details

Specifically, this function compares an edge's observed weight in the projection \(B*t(B)\) to the distribution of weights expected in a projection obtained from a random bipartite graph where the column vertex degrees are fixed but the row vertex degrees are allowed to vary.

Examples

Run this code
# NOT RUN {
fixedcol(davis)
# }

Run the code above in your browser using DataLab