Simulate: Simulate an observation matrix

View source: R/Init.r

SimulateR Documentation

Simulate an observation matrix

Description

Given vectors of length M and N, representing spatial and temporal factors (e.g., population density per location and sesonal trends, respectively), this function computes a MxN baseline matrix and simulate a Poisson point process.

Usage

Simulate(
  population,
  time.factor,
  total.average,
  save.baseline.matrix = F,
  n.unknown.time = 0
)

Arguments

population

A numeric vector.

time.factor

numeric vector.

total.average

A numeric.

save.baseline.matrix

A logical.

n.unknown.time

A numeric. Represents the baseline for cases that have unknown date report.

Value

A sparseMatrix observation matrix.

Examples

sim = Simulate(spatial.factor, time.factor, total.average)

mcavallaro/rancovr documentation built on April 17, 2025, 7:21 p.m.