Learn R Programming

amen (version 1.0)

simY_bin: Simulate a network, i.e. a binary relational matrix

Description

Simulates a network, i.e. a binary relational matrix

Usage

simY_bin(EZ, rho)

Arguments

EZ
square matrix giving the expected value of the latent Z matrix
rho
dyadic correlation

Value

  • a square binary matrix

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (EZ, rho)
{
    ZS <- simZ(EZ, rho)
    YS <- 1 * (ZS > 0)
    diag(YS) <- NA
    YS
  }

Run the code above in your browser using DataLab