simulate_affiliation: Simulate of matrix of affiliation

View source: R/simulation.R

simulate_affiliationR Documentation

Simulate of matrix of affiliation

Description

Simulate of matrix of affiliation

Usage

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

Arguments

n

An integer, the number of individuals

m

An integer, the number of organizations

affiliation

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

no_empty_org

A Boolean. Force all columns to have at least a 1. Must have n>m.

Value

A n \times m affiliation matrix, with a unique 1 on each rows


Chabert-Liddell/MLVSBM documentation built on March 25, 2023, 11:45 a.m.