Skip to contents

Predicted values based on the bidimensional regressional model object.

Usage

# S3 method for lm2
predict(object, newdata, ...)

Arguments

object

an object of class "lm2"

newdata

An optional two column data frame with independent variables. If omitted, the fitted values are used.

...

optional arguments

Value

a two column data frame with predicted values for dependent variables.

See also

Examples

lm2euc <- lm2(depV1+depV2~indepV1+indepV2, NakayaData, transformation = 'Euclidean')
predict(lm2euc, NakayaData[, 3:4])
#>              [,1]       [,2]
#>  [1,] -0.10714634  0.7355034
#>  [2,]  0.76751919  0.1777630
#>  [3,]  0.71377356  1.5461024
#>  [4,]  0.97343384  0.8287322
#>  [5,]  2.32044682 -0.1858853
#>  [6,]  3.66895537 -0.8335199
#>  [7,] -1.10962809  1.7756851
#>  [8,] -1.16310065  1.2187896
#>  [9,] -1.63076109  1.8346422
#> [10,]  0.11495606 -0.4178982
#> [11,]  0.90314950 -0.6598266
#> [12,]  1.82560030 -0.8248245
#> [13,] -0.07100152 -0.8971433
#> [14,]  1.60705225 -1.8426904
#> [15,] -0.19372050 -2.8581066
#> [16,]  0.62693595 -2.6027024
#> [17,]  2.68465593  0.8439124
#> [18,]  3.51168672  0.2106835
#> [19,]  2.11119272  1.9577835