You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Nicholas Potter
potterzot
Research Agricultural Economist at USDA-ERS. Water and climate economics. Peace Corps Guinea/Niger. Distance runner. Views my own.
Replication of Lewbel, Schennach, and Zhang (2020): Identification of a Triangular Two Equation System Without Instruments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fetching PCT PLANTED and YIELD for corn from USDA-NASS QuickStats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This documents the ease with which I used `tidync` to extract data from the drought index database [SPEI](http://spei.csic.es/database.html#p3) compared with using `ncdf4` directly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map a lat/lon point to a county or other geography
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Make to compile multiple Rmd files in a directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given $$X = \mathbb{R}^L$$, for every two bundles $$x, y \in X$$, $$x \succeq y$$ if and only if $$x_k \ge y_k \forall k$$.
a) Preferences are complete if for every two bundles $$x, y \in X$$, either $$x \succeq y$$ or $$x \preceq y$$ or $$x \sim y$$. Consider two bundles $$x,y$$, with $$x_i > y_i$$ and $$x_j < y_j$$. Then $$x \npreceq y$$ and $$x \nsucceq y$$, so they preferences are not complete.
b) Preferences are transitive if for any bundles $$x,y,z \in X$$, if $$x \succeq y$$ and $$y \succeq z$$, then $$x \succeq z$$.
Assume that $$x \succeq y$$ and $$y \succeq z$$. Then by the preference relation above, $$x_k \ge y_k \forall k$$ and $$y_k \ge z_k \forall k$$. Substituting, we can see that $$x_k \ge y_k \ge z_k \Rightarrow x_k \ge z_k \forall k$$, hence $$x \succeq z$$.