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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nostocalean-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 549132ea51f953640a9f2a46333001fe4c9a092c730a3f8327f67709be4f1ff0
MD5 0c70a70ac164910e69c276ddb44c0579
BLAKE2b-256 0eb315666ac6351f9e9351473e22060dd9e2a220ca0200bb7a26016995ec4717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nostocalean-0.0.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 af364809dfc52a3fcd90177266d0eb5f126836595c1734abfee151224a8fa528
MD5 6a58050f3730b0f1e8ca0442cda9128f
BLAKE2b-256 6b17b68005cedcef841984c7b495148015a46d1db5fbfe3272c6368b4e2e4f6d

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