Learn R Programming

mispitools (version 1.2.0)

LRcol: Likelihood ratio for color variable

Description

Likelihood ratio for color variable

Usage

LRcol(
  MPc = 1,
  epc = Cmodel(),
  erRc = epc,
  nsims = 1000,
  Pc = c(0.3, 0.2, 0.25, 0.15, 0.1),
  H = 1,
  Qprop = MPc,
  LR = FALSE,
  seed = 1234
)

Value

A value of Likelihood ratio based on preliminary investigation data. In this case, hair color.

Arguments

MPc

MP hair color

epc

epsilon paramenter.

erRc

error rate in the database.

nsims

number of simulations performed.

Pc

hair color probabilities.

H

hypothesis tested, H1: UHR is MP, H2: UHR is no MP

Qprop

Query color tested.

LR

compute LR values

seed

For reproducible simulations

Examples

Run this code
LRcol() 

Run the code above in your browser using DataLab