I'm trying to populate a model with, say, 1000 turtles. Each turtle holds three variables: sex, income, education. I'd like to assign the values of these variables according to some probabilities. E.g. -48% chance of a woman, 52% man -33% chance of an income below 100000, 20% chance of income between 100000 and 200000, xx% chance of, etc. -20% chance of no education, 7% chance of a phd, yy chance of zz education etc.
The probabilities will be provided via a csv-file or the user-interface. Later I'll make up rules for, how these people vote (based on statistics). But for now, I just need to create a population with the right values.
I've tried using "ask n-of" with some conditions, but as the number of variables and possible values grow, it gets ... complicated.
I've also tried "rnd:weighted-n-of" and similar, but I can't seem to get my head around it (I haven't done statistics in 25 years) :-)
Any ideas?
All the best, Palle