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.10.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

nostocalean-0.0.10-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nostocalean-0.0.10.tar.gz
Algorithm Hash digest
SHA256 5764f1ac020b195e23db2eac1df3b461d12bde5ac77a667887f76a6d84070dc9
MD5 0eae35ebc8fabcb5e06e68403956f057
BLAKE2b-256 b6645e71beead5c5387510335563d624f098b9da4ae6d8207a4528b7ef229ab7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nostocalean-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 29c9cb5bb6e548225d2c04aaee03aebe32a46629a079e81b115f04373d98299d
MD5 fd28b1c025cce16c29e79f8cf056d3b5
BLAKE2b-256 aac62fa37bb391ee6485011a61c6dfeda3710c9b2ef5b890801dbbf5894144a2

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