Skip to contents

after the end of the simulation, socsim writes every person of the simulation into a file called result.opop |

Usage

read_opop(
  folder = NULL,
  supfile = "socsim.sup",
  seed = 42,
  suffix = "",
  fn = NULL
)

Arguments

folder

simulation base folder ("~/socsim/simulation_235/")

supfile

name of supervisory-file ("socsim.sup")

seed

random number seed (42)

suffix

optional suffix for the results-directory (default="")

fn

complete path to the file. If not provided, it will be created from the other arguments

Value

Data frame with the information of the output population file

Details

1pidPerson id unique identifier assigned as integer in birth order
2fem1 if female 0 if male
3groupGroup identifier 1..60 current group membership of individual
4nevNext scheduled event
5dobDate of birth integer month number
6momPerson id of mother
7popPerson id of father
8nesibmPerson id of next eldest sibling through mother
9nesibpPerson id of next eldest sibling through father
10lbornPerson id of last born child
11maridId of marriage in .omar file
12mstatMarital status at end of simulation integer 1=single;2=divorced; 3=widowed; 4=married
13dodDate of death or 0 if alive at end of simulation
14fmultFertility multiplier

This table explains the columns of the opop file and the columns of the output data frame. You can either provide the complete path to the file or the folder, supfilename, seed and suffix with which you started the simulation