Learn R Programming

compete (version 0.1)

unknowns: Calculate the number of unknown relationships in a sociomatrix

Description

Calculate the number of unknown relationships in a sociomatrix

Usage

unknowns(m)

Arguments

m
A matrix with individuals ordered identically in rows and columns.

Value

The number of unknown relationships in m

Further details

An unknown relationship is defined as one whereby M(i,j)==M(j,i)==0 . The zeros in each cell of dyads that have this property may be referred to as structural zeros.

Examples

Run this code
unknowns(mouse)

Run the code above in your browser using DataLab