This function returns an extended regular sequence based on a numeric vector. It is used mainly to create sequences of regression variables to predict the response of a model.
eseq(x, length.out = 25, f = 0.05)
x | A numeric vector used to generate the extended range sequence. |
---|---|
length.out | An integer value that is the number of elements in
the sequence, passed to the internal call of the
|
f | The expansion factor relative to the range of values in the
vector |
A numeric vector of length length.out
that is a new
sequence based on x
.
eseq(x = 0:1, length.out = 11, f = 0.05)#> [1] -0.05 0.06 0.17 0.28 0.39 0.50 0.61 0.72 0.83 0.94 1.05