Learn R Programming

jlsm (version 0.1.0)

Simulateaplsm: Simulate from the APLSM

Description

function to simulate networks from the APLSM

Usage

Simulateaplsm(model, type)

Arguments

model

object of class APlsm

type

character indicating the types of model. It could be "DD", distance by distance model, "DV", distance by vector model, "VV", vector by vector model

Value

list containing:

  • Y.i (N x N) matrix containing the simulated Y.i

  • Y.ia (N x M) matrix containing the simulated Y.ia

Examples

Run this code
# NOT RUN {
attach(french)
b=aplsm(Niter=3,Y.i, Y.ia,D=2, type="DD")
Simulateaplsm(b,"DD")
# }

Run the code above in your browser using DataLab