Learn R Programming

sptotal (version 1.0.1)

coef.slmfit: Extract Model Coefficients from a slmfit object

Description

Extract Model Coefficients from a slmfit object

Usage

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

Value

a vector of fitted model coefficients.

Arguments

object

a slmfit object

...

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')
coef(slmobj)

Run the code above in your browser using DataLab