## My Julia DataFrames cheatsheet

Creating and calculating within groups In Stata: bysort group1 group2 (t): egen sum = sum(freq) generate prob = freq/sum bysort group1 group2: gen cumul = sum(prob) In Julia: sort!(df, ) df = transform(groupby(df, ), :freq => sum => :sum) df = df ./df df = transform(groupby(df, ), :prob => cumsum => :cumul) Collapsing data Stata: collapse (sum) freq, by(group) Julia:...