Questions tagged [benford.analysis]

Use this tag for questions related to the benford.analysis R package

7 questions
3
votes
2 answers

Properly calling variable name when creating multiple Benford plots

I am creating Benford plots for all the numeric variables in my dataset. https://en.wikipedia.org/wiki/Benford%27s_law Running a single variable #install.packages("benford.analysis") library(benford.analysis) plot(benford(iris$Sepal.Length)) Looks…
M.Viking
  • 5,067
  • 4
  • 17
  • 33
3
votes
1 answer

R plot except param?

Please advise what does the except parameter does in R plot function: For example: library(benford.analysis) data(census.2009) # Check conformity bfd.cen <- benford(census.2009$pop.2009, number.of.digits = 1) plot(bfd.cen, except = c("second…
SteveS
  • 3,789
  • 5
  • 30
  • 64
2
votes
1 answer

R Benford Analysis

I'm using the benford.analysis package to explore the benford's law. I'm being asked to plot distribution of the first digit of any given data set and overlay it on a benford graph. Right now, i'm looking at the plot() of the benford.analysis…
bencampbell_14
  • 587
  • 2
  • 10
  • 32
1
vote
1 answer

Benford’s Law by group in R

I am attempting to implement Benford’s Law using the benford.analysis package in R across all vendors’ invoices. Over the entire dataset the data confirms. I’m trying to find a way to group by vendor to determine if any individual vendor is…
coult
  • 117
  • 1
  • 2
  • 6
1
vote
1 answer

Extract info from a list in R

I need to extract specific information from a list in R. My data is 'Benford' object and doesn't seem to be coercible using as_tibble() My data looks as follows: library(dplyr) library(purrr) library(benford.analysis) # read data data =…
TheGoat
  • 2,587
  • 3
  • 25
  • 58
0
votes
0 answers

Benford analysis in python

I am trying to use python benfords-law 1.0.0 library, to do an analysis on some data. Documentation doesnt say that the array that I need to pass has to be integers, however, the analysis only runs if I pass integers. from benfordslaw import…
Manza
  • 2,109
  • 1
  • 27
  • 34
0
votes
1 answer

R language and Benford's law: warning in program implementation

Can anyone help me? My code has some warnings. How can I solve these problems? Input is a simple vector 1*196608 that is extracted from Matlab. warnings: 1: In empirical.distribution$dist.freq - benford.dist.freq : longer object length is not a…
Arman
  • 1
  • 5