Dear all,
I have two different date variables in my dataset, year and month. For some individuals however, the month variable is a missing value.
It look like this:
I would like to expand the month variable to every individual. But I cannot use tsfill, as I get the error "repeated time values within panel". I think this comes from the missing values,
Do you know how can I do what I intend using the tsfill command?
Many thanks.
I have two different date variables in my dataset, year and month. For some individuals however, the month variable is a missing value.
It look like this:
id | year | month |
1 | 2015 | 2015m1 |
1 | 2015 | 2015m2 |
1 | 2015 | 2015m3 |
2 | 2015 | . |
3 | 2015 | . |
4 | 2015 | . |
Do you know how can I do what I intend using the tsfill command?
Many thanks.
Comment