Description Usage Arguments Value Examples
Runs slmfit
, predict
, and FPBKoutput
for each
stratum in a user-specified stratification variable. Note: if fitting the spatial model separately for each stratum, then stratum cannot be included as a covariate in the formula
argument.
1 2 3 4 |
formula |
is an R linear model formula specifying density as the response variable as well as covariates for predicting densities on the unsampled sites. |
data |
is the data set with the response column of densities, the covariates to be used for the block kriging, and the spatial coordinates for all of the sites. |
xcoordcol |
is the name of the column in the data frame with x coordinates or longitudinal coordinates |
ycoordcol |
is the name of the column in the data frame with y coordinates or latitudinal coordinates |
CorModel |
is the covariance structure. By default, |
coordtype |
specifies whether spatial coordinates are in latitude, longitude ( |
estmethod |
is either the default |
covestimates |
is an optional vector of covariance parameter estimates (nugget, partial sill, range). If these are given and |
detectionobj |
is a fitted model obj from |
detinfo |
is a vector consisting of the mean detection
probability and its standard error. By default, it is set to
|
areacol |
is the name of the column with the areas of the sites. By default, we assume that all sites have equal area, in which case a vector of 1's is used as the areas. |
FPBKcol |
is the name of the column with the prediction weights if the analyst would like to predict something other than the population total, like the total for a subset of the entire region of interest. |
stratcol |
is the column in the data set that contains the stratification variable. |
Information about the predicted total across all sites as well as variogram information for each stratum in the column stratcol
. Output is in similar structure to FPBKoutput
but with multiple strata.
1 2 3 4 5 6 7 8 9 10 11 12 13 | multistrat(formula = Moose ~ CountPred, data = vignettecount,
xcoordcol = "Xcoords", ycoordcol = "Ycoords",
areacol = "Area", stratcol = "Stratum")
## Note how the column names for coordinates, area, and stratum
## must be in quotes:
## Not run:
multistrat(formula = Moose ~ CountPred, data = vignettecount,
xcoordcol = Xcoords, ycoordcol = Ycoords,
areacol = Area, stratcol = Stratum)
#'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.