fitted.slmfit {sptotal}R Documentation

Extract Fitted Values from an slmfit object.

Description

Extract Fitted Values from an slmfit object.

Usage

## S3 method for class '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)

[Package sptotal version 1.0.1 Index]