Learn R Programming

sptotal (version 1.0.1)

print.predict.slmfit: Prints a short summary for the predict.slmfit() function.

Description

This function uses the object that is output from predict.slmfit() of class predict.slmfit.

Usage

# S3 method for predict.slmfit
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Arguments

x

is a prediction object generated from predict.slmfit()

digits

is the number of digits to be displayed in the model output

...

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')
print(predict(slmobj), digits = 4)

Run the code above in your browser using DataLab