View source: R/MakeBinomStack.R
MakeBinomStack | R Documentation |
Function to create stack for presence only points
MakeBinomStack(data, observs, tag = "points", intercept = TRUE, mesh, presname = "NPres", trialname = "Ntrials", coordnames = NULL, InclCoords = FALSE, polynoms = NULL, scale = FALSE)
data |
SpatialPointsDataFrame of covariates. |
observs |
SpatialPoints object of presences and trials. |
tag |
Name for tag for the stack (defaults to "points"). |
intercept |
Boolean, should an intercept be added? Defaults to TRUE. |
mesh |
INLA mesh. |
presname |
Names of presences column in observs. Defaults to "NPres". Note that this column can also be logical. |
trialname |
Names of column of number of columns in observs. Defaults to "Ntrials", ignored if presences column is logical. |
coordnames |
Names of coordinates. |
InclCoords |
Boolean, shoiuld coordinates be included in data (defaults to FALSE). |
polynoms |
If not NULL, a SpatialPolygons object, with (for example) range maps. |
scale |
Should the distance be scaled by dividing by the mean of the non-zero distances? Defaults to FALSE, either logical or numeric. Ignored if polynoms is NULL. |
An INLA stack with binomial data: include Ntrials, which is the number of trials
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.