Mastering Development

How can I calculate weighted standard errors and plot them in a bar plot?

I have a data frame of counts. I would like to calculate weighted proportions, plot the proportions, and also plot standard error bars for these weighted proportions. Sample of my data frame: head(df[1:4,]) badge year total b_1 b_2 b_3 b_4 b_5 b_6 b_7 b_8 b_9 b_10 1 15 2014 14 3 2 1 1 1 […]