Skip to contents

ResponseRegr creates a response object that are used as target during the fitting process.

Format

S4 object.

Usage


ResponseRegr$new(target_name, response)
ResponseRegr$new(target_name, response, weights)

Examples


response_regr = ResponseRegr$new("target", cbind(rnorm(10)))
response_regr$getResponse()
#>             [,1]
#>  [1,]  1.7869131
#>  [2,]  0.4978505
#>  [3,] -1.9666172
#>  [4,]  0.7013559
#>  [5,] -0.4727914
#>  [6,] -1.0678237
#>  [7,] -0.2179749
#>  [8,] -1.0260044
#>  [9,] -0.7288912
#> [10,] -0.6250393
response_regr$getTargetName()
#> [1] "target"