postSim | R Documentation |
postSim: A function for simulating posterior odds
postSim(
datasim,
Prior = 0.01,
PriorModel = c("prelim", "uniform")[1],
eps = 0.05,
erRs = 0.01,
epc = Cmodel(),
erRc = Cmodel(),
MPc = 1,
epa = 0.05,
erRa = 0.01,
MPa = 10,
MPr = 2
)
datasim |
Output from simLRgen function. |
Prior |
Prior probability for H1 |
PriorModel |
Prior odds model: "prelim" is based on preliminary data, and "uniform" uses only the prior probability of H1 |
eps |
epsilon parameter sex |
erRs |
error parameter sex |
epc |
epsilon parameter hair color |
erRc |
error parameter hair color |
MPc |
Missing person hair color |
epa |
epsilon parameter age |
erRa |
error parameter age |
MPa |
Missing person age |
MPr |
Missing person age error range |
A value of posterior odds.
library(forrel)
x = linearPed(2)
plot(x)
x = setMarkers(x, locusAttributes = NorwegianFrequencies[1:5])
x = profileSim(x, N = 1, ids = 2)
datasim = simLRgen(x, missing = 5, 10, 123)
postSim(datasim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.