crunch (version 1.27.7)

ensureValidCase: Validate case statements for case variables

Description

Validate case statements for case variables

Usage

ensureValidCase(case)

Arguments

case

a list for one case to test

List elements:

  1. id: an integer to use for this category when a case variable is made (default: none, one will automatically be assigned when the case variable is made)

  2. name: a character identifier for this case

  3. expression: a CrunchLogicalExpr that sets the conditions for the case, or "else"

  4. numeric_value: a numeric that is the value this case should take on when analyzing the data numerically (mean, standard deviation, etc.)

  5. missing a logical indicating if this case should be treated as missing