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

Uploaded Source

Built Distribution

nostocalean-0.0.12-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nostocalean-0.0.12.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/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.6

File hashes

Hashes for nostocalean-0.0.12.tar.gz
Algorithm Hash digest
SHA256 bf0fae5aaa04e21eb2565ee0c9c1c4afb6f475ec0a9e2242bd87fbb68bc56e6f
MD5 cf2ef402b317430cd8a959dbf01c3db4
BLAKE2b-256 4042d36d0cdf80f5e5648b978ef6ed261eccf47cb1c63890e5301fda9acc540c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nostocalean-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.6

File hashes

Hashes for nostocalean-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd4874980123f7d6964b2453bf97e2b1857d6096d3a87331eee26eaf1553b16
MD5 e15df7c7def58163a438422cbc876fc2
BLAKE2b-256 f211fd18bff87297788971facf408d3f9e10d61711f47a2c56aa612f70b576d9

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