high_low_by_digit_place: Computes the high low digit binomial test by digit place for...

View source: R/high_low_test.R

high_low_by_digit_placeR Documentation

Computes the high low digit binomial test by digit place for desired data columns. Helper function for high_low_test

Description

Computes the high low digit binomial test by digit place for desired data columns. Helper function for high_low_test

Usage

high_low_by_digit_place(
  digitdata,
  digits_table,
  high,
  high_freq_theoretical,
  omit_05,
  skip_first_digit,
  test_type = "binom"
)

Arguments

digitdata

A object of class DigitAnalysis.

digits_table

A digits table for some data columns, preferably returned by grab_desired_aligned_columns

high

An numeric array of digits or a single number that will be classified as high digits. Defaulted to c(6,7,8,9).

high_freq_theoretical

A table for theoratical high digit frequency in each digit place.

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.

skip_first_digit

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

test_type

Specifies whether to perform a binomial test on high vs low digit frequency weighted averaged across digit places with "binom", or a chi square test on high vs. low by each digit place with "chisq". Defaulted to "chisq".

Value

A table of p_values for input digits_table by digit place


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