covid19br / nowcaster

Repository to the R package nowcaster, nowcasting with INLA
https://covid19br.github.io/nowcaster
GNU General Public License v3.0
18 stars 5 forks source link

Add observed number of cases into nowcaster outputs #37

Closed lsbastos closed 2 years ago

lsbastos commented 2 years ago

Add a column with the observed number of cases in the nowcaster outputs.

> aaa$total
# A tibble: 15 × 7
    Time dt_event   Median    LI    LS   LIb   LSb
   <int> <date>      <dbl> <dbl> <dbl> <dbl> <dbl>
 1    17 2019-10-26    154  154   154    154  154 
 2    18 2019-11-02    173  173   173    173  173 
rafalopespx commented 2 years ago

Now the $data element on the output object from nowcasting_inla returns a grouped by data.frame with a column called observed