A list of column schema specifications for the new variable
pred
A vector of values predicted by the model
exclusions
Numeric values that should not receive extra noise
n_ntiles
The number of ntiles
obs_per_ntile
A numeric for the minimum number of observations to be
in an ntile. Cannot be used in conjunction with the n_ntiles argument.
ties_method
The ntiles approach to adding noise requires a one-to-one
mapping from model-generated values to ntiles in the original data. The
methods "collapse", "random", and "exclusions" deal with situations where the
ntiles lack unique bounds. "collapse" collapses ntile breaks to preserve the
one-to-one relationship; "random" adds a small random perturbation to the
derived boundaries; finally, "exclusions" treats ntile tie values as derived
exclusions.
sd_scale
float, a positive number to scale the estimated KDE variance.
Defaults to 1.0