Learn R Programming

FlywayNet (version 0.1.0)

get_paramlikelihood: Computes, by simulation, the log-likelihood of parameters

Description

Computes, by simulation, the log-likelihood of parameters P(O | Lambda)

Usage

get_paramlikelihood(migr, obs, n_simul = 10)

Arguments

migr

the migration structure which parameters likelihood should be evaluated

obs

observation matrix used for the likelihood evaluation

n_simul

number of simulations

Value

the log likelihood of the parameters of the migration structure migr.

Examples

Run this code
# NOT RUN {
migr <- generate_toy_migration()
get_paramlikelihood( migr, migr$observation)
# }

Run the code above in your browser using DataLab