fit_migramod: Estimate a migramod model via linear optimization

Description Usage Arguments Value Examples

View source: R/fit_migramod.R

Description

Estimate a migramod model via linear optimization

Usage

1
fit_migramod (dataIn, parameters_0, model.rc)

Arguments

dataIn

Empirical (out/in) migration rates for estimation.

parameters_0

Set of initial parameters for selected Rogers and Castro model equation.

model.rc

Object of class migramod with usually a Rogers and Castro model expression.

Value

A list of values calculated in the minimization as OptimResult, R squared or MAPE.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
param0 <- genRandomPar(profile='seven')
name = 'Parametric_model',
expr = rc_expression(profile = 'seven') ,
dataIn = dataIn
)
fit_migramod(dataIn, param0, model.rc)

## End(Not run)

elflacosebas/migraR documentation built on Feb. 26, 2021, 3:03 p.m.