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, cluster="~group_a+group_b")
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 import utility_functions
utility_functions.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.17.tar.gz (9.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: nostocalean-0.0.17.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for nostocalean-0.0.17.tar.gz
Algorithm Hash digest
SHA256 ca8ad0f45294524854cd775a6ddfcd70d47931f5c9e94243791e8e4a019d8ada
MD5 bf64cbc8b6a306d5f1a94f3017f36aeb
BLAKE2b-256 1b9250a1501323cc6e4b5f69238e8f9d75e745910c6cb86c7fa21ed69148d3bb

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