Learn R Programming

amen (version 1.0)

simY_nrm: Simulate a normal relational matrix

Description

Simulates a normal relational matrix

Usage

simY_nrm(EY, rho, s2)

Arguments

EY
square matrix giving the expected value of the relational matrix
rho
dyadic correlation
s2
dyadic variance

Value

  • a square 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 (EY, rho, s2)
{
    YS <- simZ(EY, rho, s2)
    diag(YS) <- NA
    YS
  }

Run the code above in your browser using DataLab