covAtNewGrid: Transform covariates to new grid

Description Usage Arguments Value

View source: R/BasicFunctions.R

Description

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.

Usage

1
2
3
4
5
6
7
8
covAtNewGrid(
  use.covariates,
  covGrid,
  gridvalX,
  gridvalY,
  modelledGridVal,
  logicalGridPointsInsideCountingDomain
)

Arguments

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

Value

List with the covariate values at the new grid (with respectively NA outside the modelling domain and outside the coutning domain)


PointProcess/SealPupProduction-JRSSC-code documentation built on Jan. 27, 2020, 10:06 p.m.