rghype: Generate random realisations from ghype model.

Description Usage Arguments Value Examples

View source: R/randomsamples.R

Description

Generate random realisations from ghype model.

Usage

1
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

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

ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.