Gary King Homepage Previous: Model and Data Up: Inputs Next: Smoothing over Time

Smoothing over Age Groups

zero.mean
A boolean or named vector with a value of $ \bar\mu$ for each age group. If TRUE, the prior has zero mean. If FALSE, the prior has nonzero mean centered around the observed mean age profile (i.e., the average of $ Y$ over time and levels of the geographic index for each age group). Default: FALSE.

Ha.sigma
This can be set in one of three ways: (1) a scalar which sets $ \sigma_a$, the prior standard deviation of $ E(Y)$, indicating how much to smooth $ E(Y)$ over age groups (which may vary over geographic areas and time periods, and with the standard deviations averaged over age groups). A larger standard deviation represents more prior uncertainty, which allows the data to play a greater role. (2) NA to not smooth in this way. (3) To have YourCast search for a good value based on a target value of the derivative of $ E(Y)$ with respect to age, set to a vector of elements containing the start and end of a range in sigma in which to look (such as 0.05 and 1.5), the number of values to look at within this range (such as 5), and the target value of the derivative of $ E(Y)$ with respect to age (such as 0.05). The vector may also include a fifth element, which is the target value of the total standard deviation of $ E(Y)$ over all dimensions of the prior (such as 0.1). (You may choose to run YourCast with model=EBAYES on a related data set to find an approximate target value of the derivative and standard deviation automatically.) Default: 0.30.

Ha.sigma.sd
A scalar; the standard deviation of parameter Ha.sigma (for Gibbs sampling only). Default: 0.1.

Ha.deriv
A numeric vector, each element of which is $ \mathbbm{n}$, the degree of a (discrete) derivative of the smoothness functional with respect to the age group. Element $ k$ of this vector refers to the $ (k-1)$th derivative, where 0 excludes the derviative, 1 includes it, and values in between include the derivative but weight it down proportionally. The first element of the vector corresponds to the weight on the derivative with respect to age of order 0 (the identity operator), the second to the weight on the derivative of order 1 (the 1st derivative), etc. For example, c(0, 1, 1) corresponds to a mixed functional that penalizes the first and second derivatives equally. The higher the order of derivative, the more local smoothness over age groups; and lowest specified derivative controls the form of prior indifference. Default: c(0, 0, 1), which usually works well.

Ha.age.weight
A scalar or a numeric vector with weights that determine how much smoothing occurs for different age groups. If set to 0 or NA, age groups are weighted equally; if set to a nonzero scalar, the weight for age group $ a$ is set proportional to $ a^$Ha.age.weight; if a vector of length A, the $ a$th element is the weight of age group $ a$. Default: 0.

Ha.time.weight
A scalar or a numeric vector with weights that determine how much smoothing occurs for different time periods when smoothing over age groups. If 0 or NA, time periods are weighted equally; if set to a nonzero scalar value, the weight for time period $ t$ in smoothing age groups is proportional to $ t^$Ha.time.weight; if the argument is a vector of length T, the $ t$th element is the weight of time period $ t$. Default: 0.



Gary King 2009-07-13