Skip to contents

Probabilistic Projections of Population

Usage

prob.proj(
  mort.m,
  mort.f,
  fert,
  popf,
  popm,
  migr = NULL,
  time.n = 25,
  sims = 500,
  tfr.boot = F,
  clusters = 6,
  pp = 1
)

Arguments

mort.m

Data.frame with columns year, age, mx for males.

mort.f

Data.frame with columns year, age, mx for females

fert

Data.frame with columns year, age, fx.

popf

Data.frame with columns year, age, pop for females

popm

Data.frame with columns year, age, pop for females

migr

migration data or NULL for closed population

time.n

Numeric value of for how many years projection should be done.

sims

Numeric values of number of simulations.

tfr.boot

Logical. Should bootstrap be used to estimate TFR? Default is FALSE The number of replications is sims

clusters

Numeric. Number of engines for parallel computations

pp

lag size

Value

list with data.frame with projections, VAR model, projected age structure and some tests.