BinaryData: Generate Binary Data

View source: R/data.R

BinaryDataR Documentation

Generate Binary Data

Description

Creates binary data based on a nonlinear interaction of Z1 and Z2.

Usage

BinaryData(N, threshold = 0)

Arguments

N

Integer. Sample size.

threshold

Numeric. Threshold for binary classification. Default is 0.

Value

A data frame with columns Z1, Z2, X, and Y.

Examples

head(BinaryData(100))


CCI documentation built on Aug. 29, 2025, 5:17 p.m.