predict.grid_partition: Get factor describing cell number fo each observation

View source: R/grid_partition.R

predict.grid_partitionR Documentation

Get factor describing cell number fo each observation

Description

Note that currently if X has values more extreme (e.g., for numeric or factor levels ) than was used to generate the partition then we will return NA unless you provide and updated X_range.

Usage

## S3 method for class 'grid_partition'
predict(object, X, X_range = NULL, ...)

Arguments

object

partition

X

X data or list of X

X_range

(Optional) overrides the partition$X_range

...

Additional arguments. Unused.

Value

Factor


microsoft/CausalGrid documentation built on Aug. 25, 2022, 9:30 a.m.