update_speed_param: Simulate speed parameters.

Description Usage Arguments Value See Also

Description

update_speed_param returns a conditional MH proposal (with acceptance probability) of the speed parameters.

Usage

1
update_speed_param(fixed_constant, curr_move_params, behav_params, refined_path)

Arguments

fixed_constant

List with components:

pert_sd

Vector, perturbation standard deviations for the speed parameter proposals.

num_states

Numeric, number of behavioural states.

indep_step

Boolean, True if independent step model, False if correlated step model.

num_speed_param

Numeric, number of speed parameters.

q.bearings

Vector, index positions within curr_move_params relating to bearing parameters.

q.speed_mean

Vector, index positions within move_params relating to speed mean parameters.

q.speed_corr

Vector, index positions within move_params relating to speed correlation parameters.

q.speed_var

(Will only apply if indep_step is False) Vector, index positions within move_params relating to speed variance parameters.

q.obs_error

Vector, index positions within curr_move_params relating to observation error parameters.

curr_move_params

Vector of movement parameters (as turn_var_1, turn_var_2, mean_speed_1, .., speed_var_2).

behav_params

List with components:

lambda

Vector (length num_states) of switching rates.

q

Matrix (square size num_states with NA diagonal elements) of switching probabilities. Note: row = from, column = to.

refined_path

List with components:

time_diffs

Vector, differences in the refined time scale.

behavs

Vector, refined behavioural/state sequence.

steps

Vector, refined step process.

Value

List with the components:

accept_prob

Numeric, probability of accepting the MH proposal.

prop_speed_params

Vector, proposed speed parameters.

See Also

Other Speed parameters: calc_cond_step_dist, calc_markov_steady_state, calc_step_lik


a-parton/CTStepTurn documentation built on May 14, 2019, 4:17 p.m.