Open nsbatra opened 2 years ago
Hi Neale, sorry about that I think I did a find and replace all and typed the wrong word in. i also incidentally found an issue where if there were 0 rows in a count the functions threw an error. I am not sure how to handle this situation - for now it looks like below (see 0 to 2 year old category, in which the variable of interest is a column called "cases". Should the AR not be calculated for that age group? can AR and CI values with "-" or "NA"
The new code that produced this table is pushed and ready to use
Thanks for looking into this Amy, I'll use your revised code when I dive into this next. For the table I'll defer to @aspina7, but my opinion for strata with 0 cases would to put as "-" where possible.
Agree - would leave counts as zero but put dashes for the rest
Hi @amygimma , it's 3am so hope this is coherent, else @aspina7 can fill in the details. Any help greatly appreciated. Trying to wrap this up ASAP.
I am working in the outbreak templates updating the tables to gtsummary using your functions. Currently in AJS template in this branch.
Trying to recreate the general ( no sub groups) attack rate table created with this:
And was trying to use code you wrote
But the error I get is:
I have a variables
case
which is boolean.Alex thinks it is something do with this: https://github.com/R4EPI/epitabulate/blob/master/R/gt_wrappers.R#L82