Skip to contents

Create a mapper for linear effects

Usage

bm_linear()

bru_mapper_linear()

# S3 method for class 'bm_linear'
ibm_n(mapper, ...)

# S3 method for class 'bm_linear'
ibm_values(mapper, ...)

# S3 method for class 'bm_linear'
ibm_jacobian(mapper, input, ...)

Arguments

mapper

A mapper S3 object, inheriting from bru_mapper.

...

Arguments passed on to other methods

input

Data input for the mapper.

Examples

m <- bm_linear()
ibm_eval(m, input = 1:4, state = 2)
#> [1] 2 4 6 8