sdt_counts: Convert trial-by-trial data to counts.

Description Usage Arguments Details Author(s)

View source: R/sdt_functions.R

Description

Reduces a trial-by-trial data frame to counts.

Usage

1
sdt_counts(df, stimulus = NULL, response = NULL, split_resp = TRUE)

Arguments

df

Data frame containing single trial data.

stimulus

Bare column name that contains the stimulus grouping of the trial (e.g. present versus absent).

response

Bare column name that contains the response to be totalled over. (e.g. yes or no or any combination of confidence and response.)

split_resp

Defaults to TRUE. Splits the counts into two columns, one for each stimulus.

Details

Intended mainly for use with the type 2 SDT fit_meta_d_MLE, fit_meta_d_SSE, and fit_meta_d_bal functions. By default it will split the totals into multiple columns, one for each stimulus, with each row the total for a possible response. It is currently expected that confidence and response are combined into a single column i.e. Response = "Definitely yes, maybe yes, maybe no, definitely no". Separate columns for confidence and response are not currently supported, but may be in the future.

Author(s)

Matt Craddock, [email protected]


craddm/metaSDT documentation built on May 24, 2018, 4:16 p.m.