get_german_credit_dataset {PosteriorBootstrap} | R 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)
[Package PosteriorBootstrap version 0.1.2 Index]