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

Uploaded Source

File details

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

File metadata

  • Download URL: nostocalean-0.0.15.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for nostocalean-0.0.15.tar.gz
Algorithm Hash digest
SHA256 620af0355d771708e9a8f24941e7cf439d45cfecf15ff4879feb415cf3a50298
MD5 913e67f2fa6810715dabd3ad68ad5c7b
BLAKE2b-256 eb7b26a7c3fb77fae743e89581e1688309391bd3dd3125a8c4f3a1d0c46794a1

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