Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3542

Prediction of the future events. It is a special case of [prediction], in the context of [time-series].

2 votes

Lagged Variables in R

Does this do what you want? x1 <- 1:10 g <- .1 x2 <- cumprod(c(tail(x1, 1), rep(1+g, 5))) c(x1, x2)
Biomathjdaily's user avatar