pVsim: Bootstrap based p values for visual inference

Description Usage Arguments Value Examples

View source: R/pvalues-deprecated.r

Description

\lifecycle

deprecated Simulation based p value to observe x or more picks of the data plot in K evaluations under the assumption that the data plot is consistent with the null hypothesis. We distinguish between three different scenarios:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
pVsim(
  x,
  K,
  m = 20,
  N = 10000,
  scenario = 3,
  xp = 1,
  target = 1,
  upper.tail = TRUE
)

Arguments

x

number of observed picks of the data plot

K

number of evaluations

m

size of the lineup

N

MC parameter: number of replicates on which MC probabilities are based. Higher number of replicates will decrease MC variability.

scenario

numeric value, one of 1,2, or 3, indication the type of simulation used: scenario 3 assumes that the same lineup is shown in all K evaluations

xp

exponent used, defaults to 1

target

(vector) of integer values between 1 and m indicating the position(s) of the target plots. Only the number of targets will affect the probabilities.

upper.tail

compute probabilities P(X >= x). Be aware that the use of this parameter is not consistent with the other distribution functions in base. There, a value of P(X > x) is computed for upper.tail=TRUE.

Value

Vector/data frame. For comparison a p value based on a binomial distribution is provided as well.

Examples

1
pVsim(15, 20, m=3) # triangle test

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