Home › Forums › Fillmissing: Fill Missing Values in Stata Variables › Fill missing values with the mean value in Stata
Tagged: fillmissing, missing values, Panel data, Stata
Hello Dr Attaullah Shah;
I want the fillmissing program to solve missing value problems with the with(mean) with panel data.
To fill missing values with the mean value in a panel data, you can use the following command structure:
bys id: fillmissing varname, with(mean)
Where id is your panel id, such permno, company name, or country. And the varname is the name of the variable which contains missing values.
Enter something special: