Skip to content
Snippets Groups Projects
Commit b9f41aed authored by Niklas Selke's avatar Niklas Selke
Browse files

Added a template for the public interface of the trends subpackage.

parent 48e2ef2e
No related branches found
No related tags found
2 merge requests!5Modified the test for the 'value_count' statistic. Now all available sampling...,!3Niklas issue009 feat calculate quantile regression
"""This module contains the public interface for the trends subpackage.
This module contains the following function:
calculate_quantile_regression - calculate the quantile regression
"""
import statsmodels.formula.api as smf
def calculate_quantile_regression(quantiles, data):
"""Calculate the quantile regression.
This function is the public interface for the ``trends`` subpackage.
It takes all the user inputs and returns the result of the requested
quantile regression.
:param quantiles: a single quantile or a list of quantiles to
calculate, these must be between 0 and 1
:param data: data containing a list of date time values and
associated parameter values on which to calculate the
quantile regression
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment