add_mappers: Add component input/latent mappers

View source: R/effect.R

add_mappersR Documentation

Add component input/latent mappers

Description

Add missing mappers between input data and latent variables, based on likelihood data

Equip component(s) with mappers for subcomponents that do not have predefined mappers. When needed, the data in lhoods is used to determine the appropriate mapper(s).

Usage

add_mappers(...)

## S3 method for class 'component'
add_mappers(component, lhoods, ...)

## S3 method for class 'component_list'
add_mappers(components, lhoods, ...)

Arguments

...

Parameters passed on to other methods

component

A component object

lhoods

A bru_like_list object

components

A component_list object

Value

A component object with completed mapper information

Examples

## Not run: 
if (interactive()) {
}

## End(Not run)

inlabru-org/inlabru documentation built on April 20, 2024, 9:01 a.m.