Learn R Programming

humanleague (version 2.3.1)

Synthetic Population Generator

Description

Generates high-entropy integer synthetic populations from marginal and (optionally) seed data using quasirandom sampling, in arbitrary dimensionality (Smith, Lovelace and Birkin (2017) ). The package also provides an implementation of the Iterative Proportional Fitting (IPF) algorithm (Zaloznik (2011) ).

Copy Link

Version

Install

install.packages('humanleague')

Monthly Downloads

696

Version

2.3.1

License

MIT + file LICENCE

Maintainer

Andrew Smith

Last Published

February 24th, 2024

Functions in humanleague (2.3.1)

integerise

Generate integer population from a fractional one where the 1-d partial sums along each axis have an integral total
unitTest

Entry point to enable running unit tests within R (e.g. in testthat)
humanleague

humanleague
flatten

Convert multidimensional array of counts per state into table form. Each row in the table corresponds to one individual
qis

Multidimensional QIS
prob2IntFreq

Generate integer frequencies from discrete probabilities and an overall population.
qisi

QIS-IPF
sobolSequence

Generate Sobol' quasirandom sequence
ipf

Multidimensional IPF