search for: yrs_count

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

Did you mean: args_count
2012 Jul 27
1
How to run regressions over increasing time series
...generating a new variable to index time (instead of the decimal values). I was figuring that indexing time 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.......