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

Uploaded Source

Built Distribution

nostocalean-0.0.16-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nostocalean-0.0.16.tar.gz
Algorithm Hash digest
SHA256 df86ec447e8460d71a46c0c1aadf29d7210ffa128a46d46f618fa839d47d4eea
MD5 c64819b0fb559637938d4facdf7b49ca
BLAKE2b-256 d73d37ff248e17234c8398bfefd1b500d5572f81a838eb2354313dc1e2f0c79e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nostocalean-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nostocalean-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0698e5a5afeefc3315269f4c47a2d90c94ef35e39aa2b31e7bde027b04b18698
MD5 61e490b9c16a58bfd941467a6b138530
BLAKE2b-256 fbe6f9dfd7a86475e7a91a25755531e19b7f76a9578ed51bf1e1662f44245636

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