sumvalpr {ibr} | R Documentation |
Calculates the sum of the first (k+1) terms of a geometric series with initial term 1
and common ratio equal to valpr
(lower or equal to 1).
sumvalpr(k,n,valpr,index1,index0)
k |
The number of terms minus 1. |
n |
The length of valpr . |
valpr |
Vector of common ratio in decreasing order. |
index1 |
The index of the last common ratio equal to 1. |
index0 |
The index of the first common ratio equal to 0. |
Returns the vector of the sums of the first (k+1) terms of the geometric series.
Pierre-Andre Cornillon, Nicolas Hengartner and Eric Matzner-Lober.
Cornillon, P. A., Hengartner, N. and Matzner-Lober, E. (2009) Recursive Bias Estimation for high dimensional regression smoothers. submitted.