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

# 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

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)
#> Prediction Info:
#>        Prediction    SE 90% LB 90% UB
#> counts      813.2 24.64  772.6  853.7
#>        Numb. Sites Sampled Total Numb. Sites Total Observed Average Density
#> counts                  35                40            679           26.77