compute_CI: Function to generate correlated prediction intervals from a...

View source: R/DGM_predict.R

compute_CIR Documentation

Function to generate correlated prediction intervals from a mvrnorm

Description

Function to generate correlated prediction intervals from a mvrnorm

Usage

compute_CI(pred_results, M1, M2, M3, h, iter, ci, cou)

Arguments

pred_results

An object containing predicted values

M1

Model 1 - Linear regression bp-life-expectancy.

M2

Model 2 - Time-series D-gap.

M3

Model 3 - Sex-gap.

h

The number of steps ahead for which prediction is required.

iter

Number of iterations. Default: 500

ci

Confidence levels. Default: c(0.8, 0.95)

cou

Country name.


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