search for: yrs_combo

Displaying 1 result from an estimated 1 matches for "yrs_combo".

2012 Jul 27
1
How to run regressions over increasing time series
...would allow me to use a loop to generate the required subsets of data. I can figure out how many time periods I have and assign a sequential number to them: Years <- unique(set.data$Yrs) Yrs_count <- seq(from = 1, to = length(Years), by = 1) And then I can combine these into a dataframe: Yrs_combo <- cbind(Years,Yrs_count) However, how do I combine this data frame with my larger dataset, which has different numbers of rows? But this is just an intermediary step in the process.... Some of you might suggest an entirely different route. For now, I can manually create this new time ind...