seggetAgesFit: select age range for SEG method automatically.

seggetAgesFitR Documentation

select age range for SEG method automatically.

Description

We try all possible age ranges given the constraints provided. Whichever age range has the lowest RMSE with respect to the corresponding coverage estimate is returned.

Usage

seggetAgesFit(codi, minA = 15, maxA = 75, minAges = 8)

Arguments

codi

data.frame as returbed by ggbMakeColumns()

minA

the lowest age to be included in search

maxA

the highest age to be included in search (the lower bound thereof)

minAges

the minimum number of adjacent ages to be used in estimating

Value

integer vector of ages that minimize the RMSE.


albinomatheus/toolbox documentation built on June 13, 2024, 5:42 a.m.