Code to extract and wrestle data; perform some analysis of prices in support of the Fish Condition project.
Go here
Therefore, your life will be easier if you do this
ssc install renvarlab
ssc install labmask
ssc install insheetjson
ssc install libjson
ssc install egenmore
ssc install outreg2
ssc install sepscatter
ssc install estout
before running any code.
Installing ivreghdfe is a bit more involved
* Install ftools (remove program if it existed previously)
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")
* Install reghdfe
cap ado uninstall reghdfe
net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")
* Install boottest (Stata 11 and 12)
if (c(version)<13) cap ado uninstall boottest
if (c(version)<13) ssc install boottest
* Install moremata (sometimes used by ftools but not needed for reghdfe)
cap ssc install moremata
* Install ivreg2, the core package
cap ado uninstall ivreg2
ssc install ivreg2
* Finally, install this package
cap ado uninstall ivreghdfe
net install ivreghdfe, from(https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/master/src/)
See https://github.com/sergiocorreia/ivreghdfe
We get external data from from https://fred.stlouisfed.org/. You'll need an API key and you can store it in stata with
set fredkey <yourkey>, permanently
You can get the outputs of wrapper1_data_extraction.do and wrapper2_data_processing_common.do from
/home2/mlee/EconomicFishCondition/data_folder/external and /home2/mlee/EconomicFishCondition/data_folder/main. These will be updated sporadically.
Go here
“This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.”
See here for the license file