Home Forums Fillmissing: Fill Missing Values in Stata Variables Fill missing values with the mean value in Stata

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Aristino Djeuf
    Guest
    Post count: 118

    Hello Dr Attaullah Shah;
    I want the fillmissing program to solve missing value problems with the with(mean) with panel data.

    Attaullah Shah
    Keymaster
    Post count: 69

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.