Description Usage Arguments Value
View source: R/BasicFunctions.R
Transform a covariate grid of class 'im' to a new grid of covariate values, along with only those values being within a specified counting domain. Note: This function should also be used if covariates are not present to simplify later computations.
1 2 3 4 5 6 7 8 | covAtNewGrid(
use.covariates,
covGrid,
gridvalX,
gridvalY,
modelledGridVal,
logicalGridPointsInsideCountingDomain
)
|
use.covariates |
Logical, indicating whether covariates are used or not (see description!) |
covGrid, |
im object representing the covariate values on a dense grid where the counts live. |
gridvalX |
Numeric vector with the x-values for the grid |
gridvalY |
Numeric vecotr with the y-values for the grid |
modelledGridVal |
Matrix with same dimension as the new grid, where 1 indicates that the grid point is modelled, NA means it is outside the modelling domain. |
logicalGridPointsInsideCountingDomain |
Logical vector, indicating which of the grid elements are within the counting domain |
List with the covariate values at the new grid (with respectively NA outside the modelling domain and outside the coutning domain)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.