sim_agents_switch: A Function to simulate animal movement with an ABM with a...

Description Usage Arguments Value

View source: R/sim_agents_switch.R

Description

A Function to simulate animal movement with an ABM with a Markov switching process

Usage

1
2
sim_agents_switch(num_agents, time_points, mu_true, sigma_true,
  mu_theta_true, sigmasq_eps, sigmasq_eta, x_range, y_range, pi1, pi2)

Arguments

num_agents

The number of agents to simulate

time_points

The number of discrete time steps

mu_true

Vector with mean step size in truncated normal distribution

sigma_true

vector with the standard deviation of mean step size in truncated normal distribution

mu_theta_true

Vector for mean of multivariate normal (for projected normal distribution)

sigmasq_eps

Value for eps

sigmasq_eta

Value for eta

x_range

Range of x-values to simulate starting points of agents

y_range

Range of y-values to simulate starting points of agents

pi1

Vector with probability of moving from state 1 to states 1 and 2

pi2

Vector with probability of moving from state 2 to states 1 and 2

Value

list with z as an array of dimension (num_agents X time_points x 2) containing the agent locations and state a vector that denotes state


andyhoegh/moveR documentation built on Feb. 8, 2020, 11:20 p.m.