Extract the regression coefficients B of a normal-block model. For the variance-block models, one column per variable, on the original scale of Y even when the variables were rescaled for the fit. For the mean-block models, one column per cluster, on the scale of the fit (the original one by default), since a profile is shared by variables of different scales.
Usage
# S3 method for class 'NormalBlockBase'
coef(object, ...)Examples
ex_data <- generate_normal_block_var_data(n = 50, p = 20, d = 1, q = 3)
data <- NormalBlockData$new(ex_data$Y, ex_data$X)
model <- normal_block(data, blocks = 3, control = NB_control(verbose = FALSE))
coef(model)[, 1:5]
#> [1] -0.006372421 1.151054089 0.117281271 1.252053215 1.084841873