Density {DstarM}R Documentation

Density function

Description

Density function

Usage

Density(rt, tt)

Arguments

rt

vector of reaction times

tt

grid to evaluate the density on

Details

Can be passed to the argument densityMethod of estDstarM. This function is a minimal example to use as custom smoothing function.

Value

a vector of length(tt)

Examples

x <- rgamma(1e5, 1, 1)
tt <- seq(0, 5, .01)
d <- Density(x, tt)
hist(x, freq = FALSE)
lines(tt, DstarM:::Density(x, tt))

[Package DstarM version 0.4.0 Index]