You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
A potentially nice feature that could be added is functionality that facilitates unit-specific random walk standard deviations. It currently appears possible because the mif2 function can accepts lists as inputs to rw.sd, however this is hardly convenient. For instance, I think one could specify:
In this example, the random walk standard deviation is 0.02 for all parameters and units except for unit 3, which has specific standard deviations for tau and beta. While this is possible, it can be tedious if there are many units and a user would like additional control. More frequently, we just specify a single call to rw_sd and the mif2.internal function will convert it to a list on our behalf (if it isn't already a list).
It would be nice to have the option of doing something like this instead:
This would give the same rw-sd specification as before: if a parameter is mentioned without a corresponding unit, then this parameter becomes the value of all unit-specific parameters that share the same name. However, this can be over-written by being more explicit.
This change would likely be implemented in R/mif2.R, in the mif2.internal function. In the 5th line of code in this function, it takes the input rw.sd and turns it into a list (if it isn't already one), just replicating things. Prior to this line of code, some logic can be implemented that would check if there are any unit-specific parameters present (indicated by the brackets). It may not be too difficult to implement this, but I haven't had this need yet so I'm leaving this suggestion as an issue to work on later.
The text was updated successfully, but these errors were encountered:
A potentially nice feature that could be added is functionality that facilitates unit-specific random walk standard deviations. It currently appears possible because the
mif2
function can accepts lists as inputs torw.sd
, however this is hardly convenient. For instance, I think one could specify:In this example, the random walk standard deviation is 0.02 for all parameters and units except for unit 3, which has specific standard deviations for
tau
andbeta
. While this is possible, it can be tedious if there are many units and a user would like additional control. More frequently, we just specify a single call torw_sd
and themif2.internal
function will convert it to a list on our behalf (if it isn't already a list).It would be nice to have the option of doing something like this instead:
This would give the same rw-sd specification as before: if a parameter is mentioned without a corresponding unit, then this parameter becomes the value of all unit-specific parameters that share the same name. However, this can be over-written by being more explicit.
This change would likely be implemented in
R/mif2.R
, in themif2.internal
function. In the 5th line of code in this function, it takes the inputrw.sd
and turns it into a list (if it isn't already one), just replicating things. Prior to this line of code, some logic can be implemented that would check if there are any unit-specific parameters present (indicated by the brackets). It may not be too difficult to implement this, but I haven't had this need yet so I'm leaving this suggestion as an issue to work on later.The text was updated successfully, but these errors were encountered: