Skip to contents

block_rename

Usage

block_rename(block, pred.names)

Arguments

block

A dlm_block object.

pred.names

A vector of string with names for each linear predictor in block.

Value

A dlm_block with the linear predictors renamed to the values passed in names.

See also

Examples


base.block <- polynomial_block(
  eta = 1,
  order = 1,
  name = "Poly",
  D = 0.95
)

final.block <- block_rename(2 * base.block, c("mu", "sigma"))