graduate: Graduate grouped data

Description Usage Arguments See Also

View source: R/graduate.R

Description

A wrapper function for "sprague" and "uniform" graduation methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
graduate(
  Value,
  Age,
  AgeInt = age2int(Age),
  OAG = TRUE,
  OAnew = max(Age),
  method = c("sprague", "uniform"),
  keep0 = FALSE,
  constrain = FALSE,
  ...
)

Arguments

Value

numeric vector, presumably counts in grouped ages

Age

integer vector, lower bounds of age groups

AgeInt

integer vector, age interval widths

OAG

logical, default = TRUE is the final age group open?

OAnew

integer, optional new open age, higher than max(Age). See details.

method

character, either "sprague" or "uniform")

keep0

logical. Default FALSE. If available, should the value in the infant age group be maintained, and ages 1-4 constrained?

constrain

logical. Default FALSE. Should output be constrained to sum within the input age groups?

...

extra arguments

See Also

graduate_sprague, graduate_uniform


hhmacedo/dmtls documentation built on Dec. 20, 2021, 3:49 p.m.