Description Usage Arguments Value
View source: R/sim_agents_switch.R
A Function to simulate animal movement with an ABM with a Markov switching process
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)
|
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.