sex_gap.model: Fit sex-gap model. This is a modified version of the Raftery...

View source: R/DGM_fit.R

sex_gap.modelR Documentation

Fit sex-gap model. This is a modified version of the Raftery linear model for sex differences in life expectancy. This is kind of a AR(2)-X sex_gap ~ sex_gap1 + sex_gap2 + narrow_level

Description

Fit sex-gap model. This is a modified version of the Raftery linear model for sex differences in life expectancy. This is kind of a AR(2)-X sex_gap ~ sex_gap1 + sex_gap2 + narrow_level

Usage

sex_gap.model(X, tau, A)

Arguments

X

Input data object generated by prepare_data function.

tau

The level of female life expectancy at which the sex-gap is expected to stop widening and to start narrowing. If NULL then the model will run an algorithm to find it.

A

The level of female life expectancy where we assume no further change in the sex-gap. If NULL the model will estimate it.


MortalityGaps documentation built on April 3, 2025, 7:34 p.m.