transform_predx: Transform a 'predx' objects to a target predx class.

Description Usage Arguments Details Value

Description

Transform a predx objects to a target predx class.

Usage

1
2
3
4
transform_predx(x, to_class, ...)

## S4 method for signature 'list'
transform_predx(x, to_class, ...)

Arguments

x

a predx object or list of predx objects

to_class

character specifying predx class to convert to, e.g. "BinLwr"

cat

if to_class is "BinCat", character vector of categorical bin names

lwr

if to_class is "BinLwr", numeric vector of lower bounds for bins

Details

This function converts a predx object or list of predx objects to another specified predx class when possible.

Value

A predx object or list of predx objects, with NAs and warning messages for failed conversions.


cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.