Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import scipy.sparse
def _alt_lexsort(arr, kind='stable'):
"""
Optimized and more flexible (allows to choose sorting algorithm) version of
np.lexsort.
Assumes positive elements such that the product of the maximum values in
each layer of arr, multiplied by the length of each layer
(i.e., arr[0].shape[0]), plus some margin for roundings, is lower than
@toobaz
toobaz / Dynamic Fixed Effects Panel Data Model.ipynb
Last active October 6, 2020 18:23 — forked from spillz/Dynamic Fixed Effects Panel Data Model.ipynb
Demonstrate dynamic panel data estimation using IV in linearmodels
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
```json
{
"body": {
"key": {
"eldest_kid": "0101c77fbe863defea4df2e2afe636f0a49bf54135b2208df11b9ca84625c695218f0a",
"fingerprint": "33a9584a283356ba0cd4622fb0894b0104e29c73",
"host": "keybase.io",
"key_id": "b0894b0104e29c73",
"kid": "0101c77fbe863defea4df2e2afe636f0a49bf54135b2208df11b9ca84625c695218f0a",
"uid": "894610939a4502bf8c4a24f55716d919",