rghype: Generate random realisations from ghype model.

View source: R/randomsamples.R

rghypeR Documentation

Generate random realisations from ghype model.

Description

Generate random realisations from ghype model.

Usage

rghype(nsamples, model, m = NULL, multinomial = NULL, seed = NULL)

Arguments

nsamples

scalar number of realisations

model

ghype model

m

optional scalar, number of edges to draw

multinomial

optional boolean, draw from multinomial?

seed

optional scalar, seed for random sampling.

Value

list of adjacency matrices.

Examples

data('adj_karate')
model <- scm(adj_karate, FALSE, FALSE)
rghype(1, model)


gi0na/r-ghypernet documentation built on April 13, 2024, 9:30 a.m.