Extract Fitted Values from an slmfit object.

# S3 method for slmfit
fitted(object, ...)

Arguments

object

a slmfit object generated from the slmfit() function.

...

further arguments passed to or from other methods.

Value

a vector of fitted values (estimated means)

Examples

data(exampledataset) ## load a toy data set
slmobj <- slmfit(formula = counts ~ pred1 + pred2, data = exampledataset,
xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar')
fitted(slmobj)
#>        [,1]
#> 1  26.34639
#> 3  26.63426
#> 4  27.23214
#> 5  28.43135
#> 6  26.73825
#> 8  26.16851
#> 9  26.21182
#> 10 27.35758
#> 11 27.18495
#> 12 26.19780
#> 13 27.80209
#> 14 27.45374
#> 15 27.80411
#> 16 26.05612
#> 17 27.95937
#> 18 27.40552
#> 21 26.62734
#> 22 26.62202
#> 23 27.73517
#> 25 27.38797
#> 26 28.27388
#> 27 26.22645
#> 28 27.08614
#> 29 27.05143
#> 30 27.54447
#> 31 26.33692
#> 32 26.44394
#> 33 27.49559
#> 34 25.88298
#> 35 27.48915
#> 36 26.86122
#> 37 27.25672
#> 38 26.86550
#> 39 26.88379
#> 40 27.59593