- Weatherford Knowledge Base
- P#
- Regression Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Artificial Lift Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
- Neighborhood Functions
-
Packages
RegressionParameter()
Returns the specified regression parameter of specified regression type based on the time data of the specified numeric expression for each entity and specified time range.
Second numeric expression data used as X-values (instead of time range).
Regression types:
-
Linear
-
Exponential
-
Harmonic
-
Hyperbolic
Regression parameters:
-
RSquared
-
DeclineRate (not for Linear)
-
InitialValue (not for Linear)
-
Slope (for Linear)
-
YIntercept (for Linear)
-
Hyperbolic constant
Syntax
RegressionParameter(string regressionParameter, double numericExpression,
date/time start, date/time end, string regressionType)
Example
RegressionParameter("DeclineRate", "produced oil per time increment" in "m3",
CurrentScope("Start"), #02/24/2017 08:00#, "Exponential")