bo-js / Robin2011_RepPackage.jl

Replication Package for Robin (2011) in Julia, term project for Comp Econ class by Bo Jacobs Strom and Lewin Nolden.
MIT License
0 stars 0 forks source link

raw file? #25

Open floswald opened 5 months ago

floswald commented 5 months ago

that's the one? no header? how do you read it?

floswald@PTL11077 ~/D/9/stata> cat USquarterly.raw                                                     (base) 
63.19626,68.37183,,,,,,1947,1
64.04028,67.82901,,,,,,1947,2
61.54097,65.62121,,,,,,1947,3
63.77521,67.21008,,,,,,1947,4
63.72313,67.32483,.0478474,,,.8024251,.0463309,1948,1
63.05484,66.55024,.0547141,,,.8130138,.0421626,1948,2
floswald commented 5 months ago

I had to change your code like this:

dta = CSV.read(joinpath(@__DIR__,"..","robin-data","stata","USquarterly.raw"), DataFrame, header = false)

filter!(row -> (!ismissing(row.Column1)) && (!ismissing(row.Column4)), dta);

your filter call had isnan which did not work.