the original value is saved a attributes

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))
#> 7 x 9 sparse Matrix of class "dgCMatrix"
#>                       
#> [1,] . . . . 1 . . . .
#> [2,] . . . . . . . 1 .
#> [3,] . . . 1 . . . . .
#> [4,] . . . . . . 1 . .
#> [5,] . . . . . 1 . . .
#> [6,] 1 . . . . . . . .
#> [7,] . . . . . . . . 1