getDistr: To compute the empirical density function and hazard rate of...

Description Usage Arguments Value

Description

Human response time, often measured in milliseconds, follow lawful distributions. Given a sample of response time (as a vector or a variable in a data frame), calculate the pdf and hazard rate along with other statistics using the library "muhaz" and other methods.

Usage

1
getDistr(df, timeVar = "t", binwidth = 50)

Arguments

df

The observed response time, either as a vector or a data frame

timeVar

(Optional) The name of the RT variable if df is a data frame Useful when using the pipeline.

binwidth

(optional) The width of the bin used to computer statistics; in msec.

Value

a data frame of distributional statistics such as the pdf, hazard rate, counts, etc.


garyfeng/pdata documentation built on May 16, 2019, 5:42 p.m.