Skip to content
forked from y33les/rbeis

A Python/Pandas implementation of the Rogers and Berriman Editing and Imputation System

License

Notifications You must be signed in to change notification settings

ONSdigital/rbeis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rogers and Berriman Editing and Imputation System (RBEIS)

RBEIS implementations using Pandas and PySpark for SML

RBEIS is a method originally developed for imputing categorical data in relatively small social surveys with the intention of minimising conditional imputation variance. It is derived from CANCEIS, which is better suited to large datasets such as the Census. This implementation of RBEIS works with Pandas DataFrames.

Prerequisites

  • Python 3.6.8
  • pandas 0.20.3
  • numpy 1.13.1
  • wheel 0.29.0

(untested on newer versions; this is the environment in which RBEIS originally had to be developed)

Installation

To install, simply call pip install rbeis. (awaiting approval to publish to PyPI)

Whilst still in the pre-release stage, the latest RBEIS wheel can be manually downloaded from GitHub. Download the latest *.whl file, and run pip install path/to/wheel.


Our tests make use of Lemus and Stam's Art History Textbook Data dataset, for which we are grateful to the authors for publishing and to Tidy Tuesday for publicising. We have included the original dataset at tests/artists_original.csv, a modified version at tests/artists_unique_count.csv and the same modified version with some data removed (for the purpose of testing imputation) at tests/artists_unique_count_missing.csv.

Lemus S, Stam H (2022). arthistory: Art History Textbook Data. https://github.com/saralemus7/arthistory, https://saralemus7.github.io/arthistory/.

About

A Python/Pandas implementation of the Rogers and Berriman Editing and Imputation System

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%