Hi,
I have a dataset with 3000 observations and would like to group the data as follows:
1- generate a new variable (e.g., X);
2- replace X with 1 for the first 21 observations (row1 to row21)
3- replace X with 2 for the second group of observations which includes row22 to row42
4- replace X with 3 for the third group of observations which includes row43 to row63
5- do number #2 for rows 64 to 84
6- do number#3 for rows 85 to 105
.
.
.
Thanks,
NM
I have a dataset with 3000 observations and would like to group the data as follows:
1- generate a new variable (e.g., X);
2- replace X with 1 for the first 21 observations (row1 to row21)
3- replace X with 2 for the second group of observations which includes row22 to row42
4- replace X with 3 for the third group of observations which includes row43 to row63
5- do number #2 for rows 64 to 84
6- do number#3 for rows 85 to 105
.
.
.
Thanks,
NM
Comment