simulated_data {fkbma}R Documentation

A synthetic dataset with continuous and binary covariates and a binary treatment variable (trt).

Description

This dataset was generated using the formula: Y = 2 * Z_1 + 2 * X_1 + 2 * Z_1 * trt + \cos(X_1 \cdot 2 \pi) * trt + \epsilon, where \epsilon \sim N(0, 0.5).

Usage

data(simulated_data)

Format

A data frame with 1000 rows and 8 variables:

X_1

A continuous variable sampled from U(0, 1).

Z_1

A binary variable sampled from Bernoulli(0.35).

Z_2

A binary variable sampled from Bernoulli(0.5).

Z_3

A binary variable sampled from Bernoulli(0.65).

Z_4

A binary variable sampled from Bernoulli(0.2).

Z_5

A binary variable sampled from Bernoulli(0.35).

trt

A binary treatment variable sampled from Bernoulli(0.5).

Y

The outcome variable calculated using the formula above.

Examples

data(simulated_data)
head(simulated_data)

[Package fkbma version 0.2.0 Index]