Skip to main content

Custom utility functions.

Project description

Custom utility functions.

This package contains a collection of utility functions for empirical work in Python. It’s in progress and the API may change often. In addition to custom utility methods, the package includes wrappers for fixest and did.

Example: Given a dataframe df with columns x, y, group_a, group_b run a regression of y on x with group fixed effects, and double cluster:

from nostocalean import est

summary = est.reg("y ~ x | group_a + group_b", data=df, se="twoway")
print(summary)

Example: Given a dataframe df with columns y, first_treat, group, time report event study (aggregated group-time) estimates:

from nostocalean import est

summary = est.es(y="y", d="first_treat", g="group", t="time", data=df)
print(summary)

Nostocalean also includes several utility functions, including CES and HARA

Example: To sample a utility function, run:

from nostocalean.utility_functions import get_utility_function
get_utility_function()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nostocalean-0.0.14.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

nostocalean-0.0.14-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file nostocalean-0.0.14.tar.gz.

File metadata

  • Download URL: nostocalean-0.0.14.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.6

File hashes

Hashes for nostocalean-0.0.14.tar.gz
Algorithm Hash digest
SHA256 f1f739e5be5e1663baff306ec109f28049a79159ab43a16832cbae3778c1ad6a
MD5 e5271a97ad57fda9834feae69c0ba95a
BLAKE2b-256 d59761a6996d4feee42ad2258a84e36bab9172bb62701d27d78154b0dff92019

See more details on using hashes here.

File details

Details for the file nostocalean-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: nostocalean-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.6

File hashes

Hashes for nostocalean-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 07ec6abcccd4cd10f2b7af0028863944157e447a729add05ad019fd393ff9a8d
MD5 604211ae042563a9202b03fa68ecee96
BLAKE2b-256 146aa36a09f99b3ba3b8faea972bcb576d5929dc17b03caaef00aba235ad4385

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page