Skip to contents

An extended version of statim::x_by() which adds block, used on statistical inference pipeline that applies blocking

Usage

x_by_b(x, group, block)

Arguments

x

The response variable. Accepts a bare name, a c() of bare names, or a tidyselect helper (requires a data data frame).

group

The grouping variable. Same rules as x.

block

The blocking variable. Same rules as x.

Value

An x_by_b / var_id S7 object.

Details

Unlike statim::x_by(), x_by_b() does not support I() or inlines() for inline data. Only bare names, c(), and tidyselect helpers (with data supplied) are accepted for x, group, and block.

Examples

x_by_b(x, g, blocking)
#> -- Model Definition ------------------------------------------------------------ 
#> 
#> Variable Mapper : x_by_b 
#> Args : x | g <=> [ blocking ]