obtain_observation: Parse cleaned digits table from 'parse_digit_places' to...

View source: R/all_digit_test_helper_functions.R

obtain_observationR Documentation

Parse cleaned digits table from parse_digit_places to obtain observation table for chi square test

Description

Parse cleaned digits table from parse_digit_places to obtain observation table for chi square test

Usage

obtain_observation(
  digitdata,
  usable_data,
  digit_places,
  skip_first_digit,
  skip_last_digit,
  omit_05
)

Arguments

digitdata

A object of class DigitAnalysis.

usable_data

Digits table with desired digit places

digit_places

The indexes of left-aligned digit places to analyze. There are three options:

  • 'all': analyze all digits. Set as default.

  • An numeric array: Perform multiple digit test on the digit places desired to analyze.

  • A number: Perform single digit test on the digit place desired to analyze. If last digit test is desired, pass in -1 or c(-1).

skip_first_digit

TRUE or FALSE: If TRUE, skip first digit place before analysis. Default to FALSE.

skip_last_digit

TRUE or FALSE: If TRUE, skip last digit place before analysis, since we don't want tests to overlap. Default to FALSE. skip_last_digit should overwrite digit_places and skip_first_digits.

omit_05

Whether to omit 0 or both 0 and 5. If omit both 0 and 5, pass in c(0,5) or c(5,0); if omit only 0 pass in 0 or c(0); if omit neither, pass in NA. Default to NA.

Value

Observation table for chi square test


jlederluis/digitanalysis documentation built on Nov. 5, 2023, 11:46 a.m.