Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
toarstats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
toar-public
toarstats
Commits
b9f41aed
Commit
b9f41aed
authored
2 years ago
by
Niklas Selke
Browse files
Options
Downloads
Patches
Plain Diff
Added a template for the public interface of the trends subpackage.
parent
48e2ef2e
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!5
Modified the test for the 'value_count' statistic. Now all available sampling...
,
!3
Niklas issue009 feat calculate quantile regression
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
toarstats/trends/interface.py
+22
-0
22 additions, 0 deletions
toarstats/trends/interface.py
with
22 additions
and
0 deletions
toarstats/trends/interface.py
0 → 100644
+
22
−
0
View file @
b9f41aed
"""
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
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment