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

Uploaded Source

File details

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

File metadata

  • Download URL: nostocalean-0.0.18.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.18.tar.gz
Algorithm Hash digest
SHA256 1a5223aeed006f141270e1a339c1832b2577345c9a81ef5a0f50382d2580b708
MD5 3ef02fb507c9aff071bba07e0a58a351
BLAKE2b-256 91411ee55ec2a05274b5409803e28c661e21c0facbe14d5388f706e751822cba

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