Description Usage Arguments Value Author(s) References See Also Examples

Smooths demographic data optionally taking into account period and cohort effects

1 2 3 4 5 6 | ```
smoothAPC(data, lambda = 1, lambdaaa = 1, lambdayy = 1, lambdaay = 1,
lambdaYearsEffect = 5, thetaYearsEffect = 0.1 * lambda,
lambdaCohortEffect = 5, thetaCohortEffect = 0.1 * lambda,
cornerLength = 7, effects = TRUE, affdDiagonals = NULL,
affdYears = NULL, control = list(nnzlmax = 1e+06, nsubmax = 2e+06, tmpmax
= 2e+05), weights = NULL)
``` |

`data` |
Demographic data (log mortality) presented as a matrix. Row numbers represent ages and column numbers represet time. |

`lambda` |
Controls "general flexibility" of the smooth surface. |

`lambdaaa` |
Controls "flexibility" of the smooth surface in age direction (first dimension). |

`lambdayy` |
Controls "flexibility" of the smooth surface in years direction (second dimension). |

`lambdaay` |
Controls "flexibility" of the smooth surface in age and years directions. |

`lambdaYearsEffect` |
Controls "flexibility" of the period effects. |

`thetaYearsEffect` |
Reduces the likelihood of period effects. |

`lambdaCohortEffect` |
Controls "flexibility" of the cohort effects. |

`thetaCohortEffect` |
Reduces the likelihood of cohort effects. |

`cornerLength` |
Sets the smallest length of a diagonal to be considered for cohort effects. |

`effects` |
Controls if the cohort and period effects are taken into account. |

`affdDiagonals` |
Diagonals to be used for cohort effects. |

`affdYears` |
Years to be used for period effects. |

`control` |
Control data passed directly to |

`weights` |
Define how much every observation effect the resulting smooth surface.
The parameter must have same dimentions as |

List of three components: smooth surface, period effects, cohort effects.

Alexander Dokumentov

http://robjhyndman.com/working-papers/mortality-smoothing/

`autoSmoothAPC`

, `signifAutoSmoothAPC`

.

1 2 3 4 5 6 7 8 9 10 |

smoothAPC documentation built on Sept. 14, 2017, 5:03 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.