validate_grf_data: Validate input data for GRF analysis

View source: R/grf_helpers.R

validate_grf_dataR Documentation

Validate input data for GRF analysis

Description

Checks that input data meets requirements for GRF analysis

Usage

validate_grf_data(W, D, n.min)

Arguments

W

Numeric vector. Treatment indicator

D

Numeric vector. Event indicator

n.min

Integer. Minimum subgroup size

Value

Logical. TRUE if data is valid, FALSE with warning otherwise

Examples

W <- rep(0:1, each = 50)
D <- rbinom(100, 1, 0.6)
validate_grf_data(W, D, n.min = 60)

forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.