Package: PopulateR 1.13

PopulateR: Create Data Frames for the Micro-Simulation of Human Populations

Tools for constructing detailed synthetic human populations from frequency tables. Add ages based on age groups and sex, create households, add students to education facilities, create employers, add employers to employees, and create interpersonal networks.

Authors:Michelle Gosse [aut, cre, cph], Jonathan Marshall [aut], Mark Bebbington [ctb]

PopulateR_1.13.tar.gz
PopulateR_1.13.zip(r-4.5)PopulateR_1.13.zip(r-4.4)PopulateR_1.13.zip(r-4.3)
PopulateR_1.13.tgz(r-4.5-any)PopulateR_1.13.tgz(r-4.4-any)PopulateR_1.13.tgz(r-4.3-any)
PopulateR_1.13.tar.gz(r-4.5-noble)PopulateR_1.13.tar.gz(r-4.4-noble)
PopulateR_1.13.tgz(r-4.4-emscripten)PopulateR_1.13.tgz(r-4.3-emscripten)
PopulateR.pdf |PopulateR.html
PopulateR/json (API)
NEWS

# Install 'PopulateR' in R:
install.packages('PopulateR', repos = c('https://programgirl.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/programgirl/populater/issues

Datasets:

On CRAN:

Conda:

3.88 score 1 stars 252 downloads 20 exports 43 dependencies

Last updated 1 months agofrom:84ce2c734d. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 04 2025
R-4.5-winOKMar 04 2025
R-4.5-macOKMar 04 2025
R-4.5-linuxOKMar 04 2025
R-4.4-winOKMar 04 2025
R-4.4-macOKMar 04 2025
R-4.4-linuxOKMar 04 2025
R-4.3-winOKMar 04 2025
R-4.3-macOKMar 04 2025

Exports:ABMToCovaaddempaddindaddnetworkaddschoolagediscreateempdiffsamplefastmatchfixhoursfixrelationsinterdiffotherotherNumpairbeta4pairbeta4NumpairmultpairmultNumpairnormpairnormNum

Dependencies:abindbrainGraphclicodetoolscpp11data.tabledoParalleldplyrfansiforeachgenericsglueigraphiteratorslatticelifecyclemagrittrMASSMatrixMatrixModelsmnormtnumDerivPearsonDSpermutepillarpkgconfigplyrpurrrquantregR6RcpprlangsnSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Creates the four data frames of weighted contact pairs for use in CovasimABMToCova
Add employers to people in employmentaddemp
Add a variable indicating whether the person is in education, or has left educationaddind
Create a social network for people in a populationaddnetwork
Match school children to schoolsaddschool
Non-partnered synthetic peopleAdultsNoID
Add a sex/age structure to a data frame of grouped agesagedis
Employers and employees, by industryAllEmployers
Synthetic people restricted to an age rangeBadRels
Create employers, each with employee countscreateemp
Sample from groups, when the sample size for each group is differentdiffsample
Synthetic employers and their employee countsEmployerSet
Create couples using a weighted age group structurefastmatch
Reallocates working hours between people in education and people not in educationfixhours
Provide an age structure to relationship status, estimated from age groupsfixrelations
The proportion of people in a relationship, by age band within sexGroupInfo
People in age groups, in the Timaru DistrictInitialDataframe
Interpolate ages from age group mediansinterdiff
Four person households, with a school status for each personIntoSchools
School leaversLeftSchool
The number of contacts for 5000 personNetworkMatrix
Match people into new householdsother
Match people into existing householdsotherNum
Pair two people, using a four-parameter beta distribution, into householdspairbeta4
Pair two people, using a four-parameter beta distribution, households already existpairbeta4Num
Create many-to-one pairs of people and place them into householdspairmult
Create many-to-one pairs, when there are existing householdspairmultNum
Pair two people, using either a normal or skew-normal distribution, into householdspairnorm
Pair two people, using either a normal or skew-normal distribution, households already existpairnormNum
Synthetic people living in the Timaru DistrictPpl4networks
Sex/Age pyramid for teenagers in the Canterbury RegionRegionalStructure
Schools and their roll countsSchoolsToUse
Sex/Age pyramid data for Timaru DistrictSingleAges
Simulated townshipTownship
Adolescents with a school status and employment hoursWorkingAdolescents