predict.slmfit: Perform Finite Population Block Kriging

Description Usage Arguments Value Examples

View source: R/FPBKpred.R

Description

Takes the output of slmfit and uses FPBK to predict the counts on the unsampled sites. The column with the counts should have numeric values for the observed counts on the sampled sites and 'NA' for any site that was not sampled.

Usage

1
2
3
## S3 method for class 'slmfit'
predict(object, FPBKcol = NULL, detinfo = c(1, 0),
  ...)

Arguments

object

is an object generated from slmfit

FPBKcol

is the name of the column that contains the weights for prediction. The default setting predicts the population total.

detinfo

is a vector consisting of the mean detection probability and its standard error. By default, it is set to c(1, 0), indicating perfect detection (1) with no variance (0). Using the default assumes perfect detection.

...

Additional arguments

Value

a list of class sptotalPredOut with

Examples

1
2
3
4
slmfitobj <- slmfit(formula = Moose ~ CountPred + Stratum,
data = vignettecount,
xcoordcol = "Xcoords", ycoordcol = "Ycoords")
predict(object = slmfitobj)

highamm/FPBK-with-Detection documentation built on Jan. 2, 2022, 6:35 a.m.