GithubHelp home page GithubHelp logo

y33les / rbeis Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 1.07 MB

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

Home Page: https://yeel.es/rbeis

License: MIT License

Python 100.00%

rbeis's Introduction

This repository is now archived. Future development will take place in the ONS-owned fork at ONSdigital/rbeis.

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 <https://pandas.pydata.org>_ 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/.

rbeis's People

Contributors

berianjones avatar elinoreveritt avatar y33les avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

onsdigital

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.