search for: makegroup2

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

Did you mean: makegroup
2012 May 08
1
grouping function
Hello, I would like to write a function that makes a grouping variable for some panel data . The grouping variable is made conditional on the begin year and the end year. Here is the code I have written so far. name <- c(rep('Frank',5), rep('Tony',5), rep('Edward',5)); begin <- c(seq(1990,1994), seq(1991,1995), seq(1992,1996)); end <- c(seq(1995,1999),