Learn R Programming

sptotal (version 1.0.1)

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

Description

Extract Fitted Values from an slmfit object.

Usage

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

Value

a vector of fitted values (estimated means)

Arguments

object

a slmfit object generated from the slmfit() function.

...

further arguments passed to or from other methods.

Examples

Run this code
data(exampledataset) ## load a toy data set
slmobj <- slmfit(formula = counts ~ pred1 + pred2, data = exampledataset,
xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar')
fitted(slmobj)

Run the code above in your browser using DataLab