Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cpp_RollLinReg

C++ Rolling Linear Regression class


Description

C++ class documentation

Arguments

n

indicator period

Details

R functions roll_lm.

Usage

RollLinReg( int n )

Public Members and Methods

Name Return Type Description
Add( InputType value ) void update indicator
Reset() void reset to initial state
IsFormed() bool is indicator value valid?
GetAlphaHistory() std::vector< double > return alpha history
GetBetaHistory() std::vector< double > return beta history
GetRHistory() std::vector< double > return r history
GetRSquaredHistory() std::vector< double > return r squared history
GetValue() LinRegCoeffs has members double alpha, beta, r, rSquared
GetHistory() List return values history data.table with columns alpha, beta, r, r.squared

See Also


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.