make_re_matrix: Generate model matrix for random effect, such as AR model

View source: R/tmbutils.R

make_re_matrixR Documentation

Generate model matrix for random effect, such as AR model

Description

the original value is saved a attributes

Usage

make_re_matrix(x, lower, upper, space = 1)

Arguments

x

the covariate that we wish to smooth

Details

the original values is made unique and sorted

Examples

make_re_matrix(sample(1:10, 7))

kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.