Description Usage Arguments Value Examples
Estimates regression coefficients and spatial autocorrelation parameters.
1 2 3 |
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, |
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 |
coordtype |
specifies whether the coordinates are in Lat/Lon or already in TM or UTM |
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. |
a list with
the spatial covariance estimates
the regression coefficient estimates
the estimated covariance matrix
minus two times the log-likelihood
the names of the predictors used as covariates
the sample size
the name of the correlation model used
a vector of residuals
the design matrix for the sampled sites
a vector of the density of the observed counts
an indicator for whether the user input detection data
a list with information for predict
containing
formula
data, the data set without any missing values
a vector of x-coordinates (in TM)
a vector of y-coordinates (in TM)
whether REML or ML was used
the correlation model used
the covariance matrix for all of the sites
Inverted covariance matrix on the sampled sites
Other items used in predict
1 2 | slmfit(formula = Moose ~ CountPred + Stratum, data = vignettecount,
xcoordcol = "Xcoords", ycoordcol = "Ycoords")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.