Skip to content

Commit

Permalink
Wealth closer to Wealth Tax Commission, exept fixed a HH level.
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Sep 5, 2023
1 parent 369c3f2 commit 1efb721
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/STBOutput.jl
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,9 @@ const EXTRA_INC_COLS = 18
ns = Symbol.(colnames)
select!( sort!(vhh, col), ns... )
# next one not needed??
vhh."Average Change(£s)" = combine(groupby( dhh, [col]),(:weighted_change=>sum))[:,2]
avch = combine( groupby( dhh, [col]),(:weighted_change=>sum))
sort!( avch, col )
vhh."Average Change(£s)" = avch[:,2]
glf = coalesce.( vhh, 0.0)
# add an average change column
return glf
Expand Down

0 comments on commit 1efb721

Please sign in to comment.