rbmme: Sampling from Brown Motion with Measurement Error

Description Usage Arguments Value References Examples

View source: R/bmme.R

Description

Given the volatility parameters of a Brownian motion and normally distributed measurement errors, generate the process at discretely observed time points of a given dimension.

Usage

1
rbmme(time, dim = 2, sigma = 1, delta = 1)

Arguments

time

vector of time points at which observations are to be sampled

dim

(integer) dimension of the Brownian motion

sigma

volatility parameter (sd) of the Brownian motion

delta

sd parameter of measurement error

Value

A data.frame whose first column is the time points and whose other columns are coordinates of the locations.

References

Pozdnyakov V., Meyer, TH., Wang, Y., and Yan, J. (2013) On modeling animal movements using Brownian motion with measurement error. Ecology 95(2): p247–253. doi:doi:10.1890/13-0532.1.

Examples

1
2
3
4
5
tgrid <- seq(0, 10, length = 1001)
## make it irregularly spaced
tgrid <- sort(sample(tgrid, 800))
dat <- rbmme(tgrid, 1, 1)
plot(dat[,1], dat[,2], xlab="t", ylab="X(t)", type="l")

smam documentation built on May 30, 2017, 7:23 a.m.

Related to rbmme in smam...