build_predictors: Build the predictor frame for one round

View source: R/synthesize.r

build_predictorsR Documentation

Build the predictor frame for one round

Description

Build the predictor frame for one round

Usage

build_predictors(raw, roles, censor = NULL, lump = 15)

Arguments

raw

Character data.frame holding the columns to encode.

roles

Role per column of raw.

censor

Optional list of logical vectors (one per column of raw, NULL for never censored); censored cells become NA (unknown), which rpart routes through surrogate splits. Observed missingness stays visible as a level of its own.

Value

list(P = data.frame with syntactic names, group = index into raw columns for every column of P).


cellsynth documentation built on Oct. 31, 2026, 1:07 a.m.