get_german_credit_dataset: Load and pre-process the dataset that ships with the package

View source: R/german_credit_loader.R

get_german_credit_datasetR Documentation

Load and pre-process the dataset that ships with the package

Description

Load and pre-process the dataset that ships with the package

Usage

get_german_credit_dataset(
  scale = TRUE,
  add_constant_term = TRUE,
  download_destination = NULL
)

Arguments

scale

Whether to scale the features to have mean 0 and variance 1.

add_constant_term

Whether to add a constant term as the first feature.

download_destination

Provide a filepath if you want to download the dataset from source. Note that although the original dataset has 20 features (some of them qualitative), the numeric dataset has 24 features.

Value

A list with fields x for features and y for outcomes.

Examples


german <- get_german_credit_dataset()
head(german$y)
head(german$x)



alan-turing-institute/PosteriorBootstrap documentation built on Sept. 12, 2023, 9:32 a.m.