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
To support aggregating obs from daily to other timescales we likely want to have a struct called Aggregate that mirrors Ascertainment but allows for aggregating expected observations
This would allow for fitting to weekly data etc.
Another option here which would require less code would be to relax te constraint in LatentDelay that enforces the static PMF to be proper.
The text was updated successfully, but these errors were encountered:
You could potentially handle this like broadcasting and change the shape of the data but I don't think we want to go this way as it will make composability confusing.
We might want to specify slightly more complex structures (i.e o enforce once a week reporting without duplication of aggregation and this would suggest we do want a Aggregate struct vs relying on latent delay.
Something like:
struct Aggregate
model
aggregation = [0, 7, 0, 0, 0, 0, 0]
endgenerate_observations(::Aggregate, y_t, Y_t)
aggregation =fill(aggregation, length(Y_t)) #broadcast out by repeating pseudo code
exp_Y_t =map(eachindex(aggregation)) do i
exp_Y_t =sum(Y_t[min(1, i - aggrgation[i] +1)])
end@submodel y_t =generate_observations(model, y_t, exp_Y_t)
return y_t
end
This would work but would be quite wasteful in that it would have lots of downstream processing still occurring to 0. We could instead manipulate both the expected data and the actual observations here (i.e pull out the aggregation targets and pass them down and then reconstruct y_t here before returning. That could have some potential ramifications though?
To support aggregating obs from daily to other timescales we likely want to have a struct called
Aggregate
that mirrorsAscertainment
but allows for aggregating expected observationsThis would allow for fitting to weekly data etc.
Another option here which would require less code would be to relax te constraint in
LatentDelay
that enforces the static PMF to be proper.The text was updated successfully, but these errors were encountered: