Skip to contents

A synthetic dataset, where Y is the outcome variable, X1/X2/X3 are continuous predictors and X4 is a categorical predictor.

Usage

dataset_4

Format

`dataset_4` A data frame with 500 rows and 5 columns:

X1

Continuous variable, mean = 8, sd = 3

X2

Continuous variable, mean = 2, sd = 3

X3

Continuous variable, mean = -1, sd = 3

X4

Categorical variable, levels = 0 or 1

Y

Continuous variable, response of regression

Source

Synthetic