labelBasedOnCutoff {psichomics} | R Documentation

## Label groups based on a given cutoff

### Description

Label groups based on a given cutoff

### Usage

    labelBasedOnCutoff(data, cutoff, label = NULL, gte = TRUE)

### Arguments

`data` | Numeric: test data
`cutoff` | Numeric: test cutoff
`label` | Character: label to prefix group names (NULL by default)
`gte` | Boolean: test with greater than or equal to cutoff (TRUE) or use less than or equal to cutoff (FALSE)? TRUE by default

### Value

Labelled groups

### Examples

    labelBasedOnCutoff(data=c(1, 0, 0, 1, 0, 1), cutoff=0.5)

    labelBasedOnCutoff(data=c(1, 0, 0, 1, 0, 1), cutoff=0.5, "Ratio")

    # Use "greater than" instead of "greater than or equal to"
    labelBasedOnCutoff(data=c(1, 0, 0, 0.5, 0, 1), cutoff=0.5, gte=FALSE)

[Package psichomics version 1.8.2 Index]