dmsig: Density for the Mixture of an Inverse Gaussian and a Uniform...

Description Usage Arguments Value

Description

The density function for the mixture of a shifted inverse gaussian and a uniform distribution. The inverse gaussian distribution is parameterized in terms of a one-boundary wiener process.

Usage

1
2
dmsig(t, kappa, xi, tau, lambda, alpha = min(t), beta = max(t), ln = F,
  summation = F, sep = F)

Arguments

t

vector of response times (t > 0).

kappa

a scalar threshold value (kappa > 0).

xi

a scalar rate of evidence accumulation (xi > 0).

tau

a scalar residual latency by which to shift the response times. ( 0 <= tau < min(t) ).

lambda

a scalar mixture probability for the inverse gaussian.

alpha

a scalar for the lower boundary to use in the uniform density.

beta

a scalar for the uppber boundary to use in the uniform density.

ln

logical; If TRUE, returns the log of the density.

summation

if TRUE, returns the sum of the logs of the densities.

sep

logical; if TRUE, returns a matrix with separate columns for the weighted likelihoods of the inverse gaussian and the uniform distribution.

Value

If sep is TRUE, gives a matrix whose columns are the separate weighted densities for the inverse gaussian and uniform distribution, respectively. If ln is FALSE, gives the likelihood, else gives the log-likelihood. If both ln and summation are TRUE, gives the sum of the log-likelihoods.


rettopnivek/rtclean documentation built on May 27, 2019, 5:55 a.m.