View source: R/sim_mp_prelim.R
| sim_mp_prelim | R Documentation |
Generates a simulated database of preliminary investigation data for
missing persons (MPs). This complements sim_poi_prelim which
generates data for persons of interest. Supports two case types: missing
children and missing migrants.
sim_mp_prelim(
casetype = "children",
dateinit = "1975/01/01",
scenario = 1,
femaleprop = 0.5,
ext = 100,
numsims = 10000,
seed = 123,
region = c("North America", "South America", "Africa", "Asia", "Europe", "Oceania"),
regionprob = c(0.2, 0.2, 0.2, 0.1, 0.2, 0.1)
)
casetype |
Character. Type of missing person case:
Default: "children". |
dateinit |
Character. Minimum birth date for simulated MPs in "YYYY/MM/DD" format. Only for casetype = "children". Default: "1975/01/01". |
scenario |
Integer (1 or 2). Birth date distribution scenario:
Only for casetype = "children". Default: 1. |
femaleprop |
Numeric (0-1). Proportion of females. Default: 0.5. |
ext |
Numeric. Extension parameter for date simulation. Default: 100. |
numsims |
Integer. Number of MPs to simulate. Default: 10000. |
seed |
Integer. Random seed for reproducibility. Default: 123. |
region |
Character vector. Names of regions/locations. Default: c("North America", "South America", "Africa", "Asia", "Europe", "Oceania"). |
regionprob |
Numeric vector. Probabilities for each region. Default: c(0.2, 0.2, 0.2, 0.1, 0.2, 0.1). |
This function generates the "ground truth" characteristics of missing
persons, while sim_poi_prelim generates the observed/recorded
characteristics of persons of interest (which may include observation
errors or falsified data).
A data.frame with columns depending on casetype:
children: POI-ID, DBD, Sex, Month, Birth place
migrants: UHR-ID, Age, Sex, Height, Region
Marsico FL, et al. (2023). "Likelihood ratios for non-genetic evidence in missing person cases." Forensic Science International: Genetics, 66, 102891. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.fsigen.2023.102891")}
sim_poi_prelim for simulating POI data,
sim_lr_prelim for using this data in LR calculations.
# Simulate missing children data
mp_children <- sim_mp_prelim(casetype = "children", numsims = 100, seed = 123)
head(mp_children)
# Simulate missing migrants data
mp_migrants <- sim_mp_prelim(casetype = "migrants", numsims = 100, seed = 456)
head(mp_migrants)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.