Learn R Programming

FlywayNet (version 0.1.0)

estimate_migration_MCEM_C: Internal C function (do not use).

Description

Estimate parameters with MCEM algorithm

Usage

estimate_migration_MCEM_C(
  migration,
  estimate_transitions = NULL,
  estimate_sojourns = NULL,
  sojourn_domain = NULL,
  start_transitions = NULL,
  start_sojourns = NULL,
  nb_particles = NULL,
  itermax = NULL,
  MC_algo = NULL,
  MH_neighborhood = NULL,
  MH_transition_length = NULL,
  log_transitions = NULL,
  log_sojourns = NULL,
  log_loglikelihood = NULL,
  log_sel_particles = NULL,
  log_acceptance_rate = NULL,
  verbose = NULL
)

Arguments

migration

A migration (migration structure).

estimate_transitions

Boolean for requiring transition parameters estimation.

estimate_sojourns

Boolean for requiring sojourn parameters estimation.

sojourn_domain

Sojourn parameters domains.

start_transitions

Start transition.

start_sojourns

Start sojourns.

nb_particles

Number of particles.

itermax

Maximum number of iteration.

MC_algo

Monte Carlo algorithm name.

MH_neighborhood

Neighborhood, only when MC_algo is "MH".

MH_transition_length

Transition length, only when MC_algo is "MH".

log_transitions

Log of transition parameters.

log_sojourns

Log of sojourn parameters.

log_loglikelihood

log of log-likelihood.

log_sel_particles

log of selected particles.

log_acceptance_rate

log of acceptance rate.

verbose

Boolean for verbose.

Value

migration with estimated parameters (migration structure).