Hi,
I am working on panel data for the period from 2012 to 2020 with 2529 observations (. I need help dealing with missing data for variables (dependent, independent, control and dummy). My panel data is unbalanced and sometimes I find the missing data, in the beginning, middle and end. How can I solve this issue, please?
xtset id year
panel variable: id (unbalanced)
time variable: year, 2012 to 2020, but with gaps
delta: 1 unit
there are missing value in some variables as shown below
I would like to ask how can I fill in the missing values (should I take into account the date of incorporation).
I am working on panel data for the period from 2012 to 2020 with 2529 observations (. I need help dealing with missing data for variables (dependent, independent, control and dummy). My panel data is unbalanced and sometimes I find the missing data, in the beginning, middle and end. How can I solve this issue, please?
xtset id year
panel variable: id (unbalanced)
time variable: year, 2012 to 2020, but with gaps
delta: 1 unit
there are missing value in some variables as shown below
id | year | W_ROA | CEO_DUALITY | YEAR OF INC |
17 | 2012 | 9.84 | . | 2007 |
17 | 2013 | 7.66 | . | 2007 |
17 | 2014 | 13.3 | . | 2007 |
17 | 2015 | . | . | 2007 |
17 | 2016 | . | . | 2007 |
17 | 2017 | 9.78 | . | 2007 |
17 | 2018 | 15.25 | . | 2007 |
17 | 2019 | 11.78 | . | 2007 |
17 | 2020 | 13.87 | . | 2007 |
18 | 2012 | . | . | 2015 |
18 | 2013 | . | . | 2015 |
18 | 2014 | . | . | 2015 |
18 | 2015 | . | . | 2015 |
18 | 2016 | . | 0 | 2015 |
18 | 2017 | 2.81 | 0 | 2015 |
18 | 2018 | 3.25 | 0 | 2015 |
18 | 2019 | 3.65 | 1 | 2015 |
18 | 2020 | 3.97 | 1 | 2015 |
I would like to ask how can I fill in the missing values (should I take into account the date of incorporation).
Comment