fitted.slmfit: Extract Fitted Values from an 'slmfit' object.

View source: R/fitted.slmfit.R

fitted.slmfitR 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)

highamm/sptotal documentation built on Aug. 12, 2024, 2:04 a.m.