Lagging Variables in R.
Paper abstract bibtex What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series) for example: input: x <- c(1,2,3,4) 2 lags output: [1,NA, NA...
@misc{_lagging_????,
title = {Lagging {Variables} in {R}},
url = {http://stackoverflow.com/questions/1311920/lagging-variables-in-r},
abstract = {What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series)
for example:
input:
x \<- c(1,2,3,4)
2 lags
output:
[1,NA, NA...},
urldate = {2013-10-27TZ}
}
Downloads: 0
{"_id":"kriX89Xpimox3NHMF","bibbaseid":"anonymous-laggingvariablesinr","downloads":0,"creationDate":"2016-09-28T21:46:55.878Z","title":"Lagging Variables in R","author_short":null,"year":null,"bibtype":"misc","biburl":"http://bibbase.org/zotero/mlinchits","bibdata":{"bibtype":"misc","type":"misc","title":"Lagging Variables in R","url":"http://stackoverflow.com/questions/1311920/lagging-variables-in-r","abstract":"What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series) for example: input: x <- c(1,2,3,4) 2 lags output: [1,NA, NA...","urldate":"2013-10-27TZ","bibtex":"@misc{_lagging_????,\n\ttitle = {Lagging {Variables} in {R}},\n\turl = {http://stackoverflow.com/questions/1311920/lagging-variables-in-r},\n\tabstract = {What is the most efficient way to make a matrix of lagged variables in R for an arbitrary variable (i.e. not a regular time series)\n\nfor example:\ninput:\nx \\<- c(1,2,3,4) \n2 lags\noutput:\n[1,NA, NA...},\n\turldate = {2013-10-27TZ}\n}\n\n","key":"_lagging_????","id":"_lagging_????","bibbaseid":"anonymous-laggingvariablesinr","urls":{"Paper":"http://stackoverflow.com/questions/1311920/lagging-variables-in-r"},"downloads":0},"search_terms":["lagging","variables"],"keywords":[],"authorIDs":[],"dataSources":["jKB8eHXaPdryWNAKe"]}