inla.stack.mexpand {INLA} | R Documentation

## Expand observation vectors/matrices in stacks into to a multicolumn matrix for multiple likelihoods

### Description

Internal helper method for `inla.stack.join`.

### Usage

    inla.stack.mexpand(..., old.names = "response", new.name = "response")

### Arguments

`...` | List of stacks that contain vector observations (existing multilikelihood observation matrices are also permitted)
`old.names` | A vector of strings with the names of the observation vector/matrix for each stack. If a single string, this is assumed for all the stacks. (default "response")
`new.name` | The name to be used for the expanded observation matrix, possibly the same as an old name. (default "response")

### Value

a list of modified stacks with multicolumn observations

### Author(s)

Fabian E. Bachl f.e.bachl@bath.ac.uk and Finn Lindgren finn.lindgren@gmail.com

[Package INLA version 25.06.07 Index]