Skip to contents

make_synthetic_data() outputs a synthetic survey, generated using a simple, stochastic model of polarisation.

Usage

make_synthetic_data(
  nrow,
  ncol,
  minority = NULL,
  correlation = NULL,
  polarisation = NULL,
  likert = NULL,
  seed = NULL,
  ...
)

Arguments

nrow

The number of rows in the survey

ncol

The number of columns in the survey

minority

The fraction of nodes in the smaller of the two polarised groups

correlation

Probability that group item corresponds to polarisation

polarisation

The degree of polarisation among the system's agents

likert

Range of the Likert scale

seed

Seed value for random number generation.

...

Mostly used to handle arguments with alternative spellings.

Value

A data frame corresponding to a survey.

Examples

S <- make_synthetic_data(200, 8)