timriffe / DemoTools

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

add ogive() #76

Closed timriffe closed 5 years ago

timriffe commented 5 years ago

an early proposal for this function is in the dev folder. Just need to document, test, and add to top level.

timriffe commented 5 years ago

proposal pushed to top, calledagesmth1(), inside OGIVE.R file. Thinking ogive wouldn't be recognized by most demographers, can use same naming style as for agesmth, but indicating that it's for single ages. Now incudes methods "poly" and "loess", with options to control smoothness. Other methods could be added, but easiest if their optional args can be passed in via ... without further description. smoothing spline would be a good thing to add, since it behaves locally too.