permuteOR: Permute Odds Ratio

View source: R/2d-propd-graflex.R

permuteORR Documentation

Permute Odds Ratio

Description

This function permutes p odds ratios for the edge overlap between two non-random graphs. It does this by randomly shuffling the rows and columns of A (jointly, thus preserving the degree distribution).

Usage

permuteOR(A, G, p = 500, fixseed = FALSE)

Arguments

A, G

An adjacency matrix.

p

An integer. The number of overlaps to permute.

fixseed

A logical. If TRUE, the seed is fixed for reproducibility.

Details

Note that this function calculates overlap for the lower-left triangle of the input matrices.


tpq/propr documentation built on April 21, 2024, 12:50 p.m.