timriffe / DemoTools

Tools for the evaluation, adjustment, and standardization of demographic data
https://timriffe.github.io/DemoTools
Other
59 stars 31 forks source link

OPAG_simple updates #240

Open peterdavjohnson opened 3 years ago

peterdavjohnson commented 3 years ago

For now, can just make sure that input pop and standard are the same where they overlap (so can be either single or 5-year).

Add this check: stopifnot(OAnew >= OAnow)

Change age concordance:

    # age concordance
    minStAge = min(StAge)
    stopifnot(all(Age[Age >= minStAge] %in% StAge))

Add that lengths of standard pop and ages match: stopifnot(length(StPop) == length(StAge))