Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
Repository
PopSim with new name and updated functions
Basic Info
- Host: GitHub
- Owner: programgirl
- Language: R
- Default Branch: master
- Size: 12.1 MB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
- Releases: 0
Created over 4 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# PopulateR
The goal of PopulateR is to create a synthetic population of people, which can then be used for modelling. As access to microdata can be difficult, the package assumes only frequency tables are available. The requirement for using the package is that a data frame of synthetic individuals already exists. This can be created by using a frequency table with counts or weights, and then using those counts (weights) to construct the population.
The functions have been created assuming that the process to be used is
- add ages to people (agedis).
- choose which people are in education (addind).
- create couples using only age groups (fastmatch). This creates a couples household.
- create couples, or add a single child to a parent, using a normal or skew normal distribution based on ages (pairnorm). This creates a household containing two people.
- add a single child to a pre-existing couple, using a four-parameter beta distribution (pairbeta4Num), or a normal or skew normal distribution (pairnormNum).
- add a single child to a sole parent, using a four-parameter beta distribution (pairbeta4). This creates sole parent households.
- add multiple children to an existing couple (pairmultNum).
- add multiple children to a sole parent (pairmultNum). This creates sole parent households.
- add children to schools (addschool).
- add an extra person to a pre-existing household (otherNum).
- create a household of unrelated people (other). This creates households.
- create employers (createemp).
- add an employer to each worker (addemp).
- create a contact network (addnetwork).
The package is modular, and some functions may not be needed, depending on the detail in the frequency tables used. For example, if the population has a pre-existing age structure, the agedis function is not needed.
For example, relationship status may only be provided by age group. After adding ages, there is likely to be a random pattern of the proportion of people in a relationship, by age. fixrelations can be used to create an age pattern, within age group, within sex, so that there is a monotonic increase, or decrease in the proportion of people in a relationship, by age within sex. When an education indicator (addind) has been added, some people in full-time education may also be working full-time hours. fixhours adjusts the hours worked so that people in education do not have an usually long working week.
There are two helper functions included. diffsample samples without replacement, when different groups require different sample counts. interdiff interpolates proportions between mean values for groups.
## Installation
You can install the development version of PopulateR from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("programgirl/PopulateR")
```
Owner
- Name: Michelle
- Login: programgirl
- Kind: user
- Location: New Zealand
- Repositories: 1
- Profile: https://github.com/programgirl
PhD student working in R.
GitHub Events
Total
- Issues event: 11
- Watch event: 1
- Public event: 1
- Push event: 58
Last Year
- Issues event: 11
- Watch event: 1
- Public event: 1
- Push event: 58
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 0
- Average time to close issues: 13 days
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 7
- Pull requests: 0
- Average time to close issues: 13 days
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- programgirl (7)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 223 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: PopulateR
Create Data Frames for the Micro-Simulation of Human Populations
- Homepage: https://github.com/programgirl/PopulateR
- Documentation: http://cran.r-project.org/web/packages/PopulateR/PopulateR.pdf
- License: GPL-3
-
Latest release: 1.13
published about 1 year ago
Rankings
Dependent packages count: 27.3%
Dependent repos count: 33.6%
Average: 49.2%
Downloads: 86.8%
Maintainers (1)
Last synced:
7 months ago