compute: Compute a set of variables for each participant.

Description Usage Arguments Examples

Description

Computes a set of variables for each participant in a Jackson PhD data frame.

Usage

1
2
3
compute(x, vars = c("accuracy", "confidence", "bias", "discrimination",
  "post", "false.alarms"), group = c(T), suffix = "", bind = TRUE,
  na.rm = TRUE)

Arguments

x

Data frame from phd sample.

vars

Character vector of variables to be computed. Default/Allowed = c("accuracy", "confidence", "bias", "discrimination", "post")

group

Logical vector used to return a group of the candidate results. See ?getCol for details.

suffix

String. Will be added to column names.

bind

logical. Should variable results be bound to original data frame x? Default = TRUE.

na.rm

logical. Should missing values (including NaN) be omitted from the calculations? Default = True

Examples

1
2
3
head(compute(phd[[1]]$EA))
head(compute(phd[[1]]$EA, "accuracy"))
head(compute(phd[[1]]$EA, "post", c(T, F), ".odd"))

drsimonj/jacksonphd documentation built on May 15, 2019, 2:52 p.m.