get_benford_mean: Obtains Benford mean in each digit place after specifying...

View source: R/padding_test.R

get_benford_meanR Documentation

Obtains Benford mean in each digit place after specifying omitting 0 and 5 or not

Description

Obtains Benford mean in each digit place after specifying omitting 0 and 5 or not

Usage

get_benford_mean(contingency_table, omit_05 = NA)

Arguments

contingency_table

The user-input probability table of arbitrary distribution. Overwrites distribution if not NA. Must be a dataframe of the form as benford_table. Defaulted to NA.

  • Check out load(file = "data/benford_table.RData") to see the format of benford_table

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

A table for Benford mean in each digit place after removing 0 and/or 5 if desired


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