## compute the conditional match probability for two markers
data(freqsNLngm)
y <- sample.profiles(N=1,freqsNLngm)
rmp(y,markers = c("FGA","TH01"),theta=0.03,cmp=TRUE,ret.per.marker = TRUE)
rmp(y,markers = c("FGA","TH01"),ret.per.marker = TRUE) # compare to product rule estimate
## make a plot of density estimates of RMPs of profiles on the 10 SGMplus
data(freqsNLsgmplus)
#sample profiles
x <- sample.profiles(N=1e3,freqsNLsgmplus)
#compute RMPs
x.rmp <- rmp(x)
plot(density(log10(x.rmp)),
xlab=expression(log[10](RMP)),
main="Random match probabilities for SGMplus profiles")
Run the code above in your browser using DataLab