year_sequence_maker: year_sequence_maker

View source: R/year_sequence_maker.R

year_sequence_makerR Documentation

year_sequence_maker

Description

creates a list of years and respective indices based on user specified years to estimate and observed years

Usage

year_sequence_maker(first_year_max, first_year, last_year, contraceptive_use)

Arguments

first_year_max

model estimation cannot start any later than this year

first_year

‘Numeric’ The first year of model estimates in output. The model will be fit to all data, including dates before this date if available.

last_year

‘Numeric’ The last year of model estimates in output. The model will be fit to all data, including dates after this date if available.

contraceptive_use

Value

‘List’

  1. model_seq ‘Numeric vector’ Year index for model estimation

  2. model_seq_years ‘Numeric vector’ Years of model estimation

  3. result_seq ‘Numeric vector’ Year index for results based on user request

  4. result_seq_years ‘Numeric vector’ Years of results based on user request


FPRgroup/FPEMcountry documentation built on April 24, 2023, 4:32 p.m.