make_synthetic_data
to simulate surveysThis will run examples of computing agent and symbolic layers. We
have included the very simple make_synthetic_data
function
to simulate data with varying degrees of polarisation. You can set the
following parameters:
argument | meaning |
---|---|
nrow |
number of agents in the survey |
ncol |
number of variables in the survey |
polarisation |
amount of multidimensional polarisation |
minority |
fraction of agents in one of the two groups |
Of course you can simulate data using your own algorithms as well.
We’ll start by loading surveygraph
Here we will simulate a sample of 150 people answering 1 item in a survey with no intentional polarisation: