NEFSC / READ-SSB-Lee-EconomicFishCondition

EconomicFishCondition
Other
0 stars 1 forks source link

EconomicFishCondition

Code to extract and wrestle data; perform some analysis of prices in support of the Fish Condition project.

Project Logistics and getting started

Go here

Required stata commands

  1. renvarlab
  2. labmask
  3. insheetjson
  4. libjson
  5. egenmore
  6. outreg2
  7. sepscatter
  8. estout
  9. ivreghdfe - which requires ivreg2, reghdfe (version 5.x), ftools, and moremata. See https://github.com/sergiocorreia/ivreghdfe

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

External data

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

Pre-processed data

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.

Running code

Go here

NOAA Requirements

“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.”

  1. who worked on this project: Min-Yang
  2. when this project was created: Jan, 2021
  3. what the project does: Describes data in the oracle databases with a special eye towards fields that are used by social scientists
  4. why the project is useful: Describes data in the oracle databases with a special eye towards fields that are used by social scientists
  5. how users can get started with the project: Download and follow the readme
  6. where users can get help with your project: email me or open an issue
  7. who maintains and contributes to the project. Min-Yang

License file

See here for the license file