Learn R Programming

DstarM (version 0.4.0)

Density: Density function

Description

Density function

Usage

Density(rt, tt)

Value

a vector of length(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.

Examples

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

Run the code above in your browser using DataLab