processStartValues: Process the initial parameter supplied by the user

Description Usage Arguments Value

View source: R/fitStMoMo.R

Description

Convert the initial parameters supplied by the user into parameters suitable for use within gnm

Usage

1
processStartValues(object, coefNames, ax, bx, kt, b0x, gc, ages, years, cohorts)

Arguments

object

an object of class "StMoMo" defining the stochastic mortality model.

coefNames

name of the coefficients in the gnm model

ax

vector with starting values for α[x]

bx

matrix with starting values for β[x]

kt

matrix with starting values for κ[t]

b0x

vector with starting values for β_x^{(0)}

gc

vector with starting values for γ[c]

ages

ages in the fitting data.

years

years in the fitting data.

cohorts

cohorts in the fitting data.

Value

a vector of initial parameter estimates


amvillegas/StMoMo documentation built on Nov. 7, 2019, 5:39 a.m.