dV: Theoretical density for lineups under different scenarios

Description Usage Arguments Examples

View source: R/pvalues-deprecated.r

Description

\lifecycle

deprecated

Usage

1
dV(x, K, m, scenario, type = "numeric")

Arguments

x

vector of the number of picks of the data plot out of K evaluations

K

number of evaluations

m

size of the lineup

scenario

which scenario should be used? 1, 2, or 3?

type

one of "mpfr" or "numeric". Should the result be in arbitrary numeric length or be a numeric? Internally the Rmpfr package is used to get maximal precision.

Examples

1
2
3
4
5
6
7
8
9
dV(0:5, 5, m=2, scenario=3)
## compare to
dVsim(0:5, 5, m=2, scenario=3)

require(ggplot2)
## probabilities can be computed without numeric loss for K=50:
K <- 50
print(qplot(0:K, dV(0:K, K, m=20, scenario=3)));
print(sum(dV(0:K, K, m=20, scenario=3)));

heike/vinference documentation built on Oct. 17, 2020, 7:08 a.m.