simulate_affiliation: Simulate of matrix of affiliation

Description Usage Arguments Value

View source: R/simulation.R

Description

Simulate of matrix of affiliation

Usage

1
simulate_affiliation(n, m, affiliation = "uniform", no_empty_org = FALSE)

Arguments

n

An integer, the number of individuals

m

An integer, the number of organisations

affiliation

The type of affiliation between c("uniform", "preferential")

no_empty_org

A Boolean. Force all column to have at least a 1. Need n>m

Value

A nxm affiliation matrix, with a unique 1 on each rows


Chabert-Liddell/MLVSBM documentation built on Sept. 22, 2020, 3:38 p.m.