Miklós Koren (@korenmiklos)
Gergely Attila Kiss (@gergelyattilakiss)
JuliaCon 2024
Economist | ceu.edu |
---|---|
Data editor | restud.com |
Developer | thnk.ng |
Stata® | 1997 |
---|---|
Python | 2003 |
Julia | 2015 |
import pandas as pd
import math
import statsmodels.api as sm
import statsmodels.formula.api as smf
df = pd.read_stata("trade.dta")
df.loc[df['distance'] < 5, 'distance'] = 5
df['log_trade'] = df['trade'].apply(math.log)
df['log_distance'] = df['distance'].
apply(math.log)
model = smf.ols('log_trade ~ log_distance',
data=df).fit(cov_type='HC3')
print(model.summary())
@if
. Options
are given with , option
Use the former for interactive exploration in the REPL,
the
latter for scripts.
@if
, missing
is false
@replace x = 4.99 @if x == 5
changes
eltype
@merge
, @append
,
@reshape
@label
,
@encode
@with
Tidyverse → Julia
Johannes Boehm
Stata → Julia
Who | What |
---|---|
@bkamins | DataFrames.jl |
@matthieugomez | FixedEffectModels.jl |
@davidanthoff | StatFiles.jl |
@nalimilan | FreqTables.jl |
kezdigabor.life
gabors-data-analysis.com
@korenmiklos
@gergeleyattilakiss
thnk.ng/kezdi.jl