I tried to replace missing values of my variable with the value of another year. I have a database with lots of companies.
For instance let's say i have company one:
Year 1999
Year 2000
Year 2001
and for Year 2001 the value of my variable is 1, for year 1999 and 2000 the value is missing. I want to replace my missing with 1.
I've got the same pattern for all other companies.
Thanks in advance.
For instance let's say i have company one:
Year 1999
Year 2000
Year 2001
and for Year 2001 the value of my variable is 1, for year 1999 and 2000 the value is missing. I want to replace my missing with 1.
I've got the same pattern for all other companies.
Thanks in advance.
Comment