rtplots: Creates a 'rtplots' Object

Description Usage Arguments Details Value References Examples

Description

Creates a 'rtplots' object from a data frame of response time and choice/accuracy data, allowing for subsequent plotting.

Usage

1
2
3
rtplots(df, label = NULL, keep = NULL, type = "CDF", level = NULL, ...)

is.rtplots(x)

Arguments

df

a data frame that includes (at a minimum) a column of response times.

label

a character string giving the column name for the response time variable, and optionally the choice/accuracy variable, a grouping factor variable (e.g., subjects), and finally an additional covariate (e.g., conditions). If NULL, the algorithm will attempt to locate response time and choice/accuracy variables via a set of default names.

keep

a logical vector, indicating which rows should be kept when extracting the variables.

type

the type of function to compute. Options are

  • CDF: the cumulative distribution function.

  • QPE: the quantile function.

  • PDF: the probability density function.

  • PVT: probability versus time.

level

an optional index indicating the specific level of the grouping factor to consider. This allows, for instance, selecting a single subject.

...

additional parameters for the density, distribution, and quantile functions.

Details

Forthcoming

Value

An object of class 'rtplots', a list consisting of...

References

Forthcoming

Examples

1
2
3
4
5
# Load in example dataset
data("priming_data")
lbl = c( 'RT', 'Accuracy', 'Subjects' )
keep = priming_data$Condition == 0
obj = rtplots( priming_data, label = lbl, keep = keep )

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