Skip to content

Add NA bin to histogram when user enters a list of histogram bins that are a subset of all variable levels (tabled until library restructured) #91

@MeganFantes

Description

@MeganFantes

Right now there are 2 cases when making a histogram for a categorical variable:

  1. The user enters a list of bins, and the laplace mechanism is used
  2. The user does NOT enter a list of bins, and the stability mechanism is used

We want to implement a third case:
3) the user enters a list of bins, but the list is a subset of the full list of levels the variable takes. So we add an NA bins to the list of bins, set all levels that were not entered in the list of bins to NA, and then use the stability mechanism

In implementing this third case, we will use the existing histogramCategoricalBins function in utilities-histogram.R

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions