Learn R Programming

StMoMo (version 0.4.1)

processStartValues: Process the initial parameter supplied by the user

Description

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

Usage

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 \(\alpha[x]\)

bx

matrix with starting values for \(\beta[x]\)

kt

matrix with starting values for \(\kappa[t]\)

b0x

vector with starting values for \(\beta_x^{(0)}\)

gc

vector with starting values for \(\gamma[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