powered by
make_synthetic_data() outputs a synthetic survey, generated using a simple, stochastic model of polarisation.
make_synthetic_data()
make_synthetic_data( nrow, ncol, minority = NULL, correlation = NULL, polarisation = NULL, likert = NULL, seed = NULL, ... )
A data frame corresponding to a survey.
The number of rows in the survey
The number of columns in the survey
The fraction of nodes in the smaller of the two polarised groups
Probability that group item corresponds to polarisation
The degree of polarisation among the system's agents
Range of the Likert scale
Seed value for random number generation.
Mostly used to handle arguments with alternative spellings.
S <- make_synthetic_data(200, 8)
Run the code above in your browser using DataLab