Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Panel Data fixed method

    I'm not sure if this is possible. I'm attempting to graph a multivariable linear regression that I get from doing a panel data fixed method. Moreover, I am attempting to compare my predicted values vs actual values. Could someone please explain how to do this

  • #2
    You'll increase your chances of a useful answer by following the FAQ on asking questions - provide Stata code in code delimiters, readable Stata output, and sample data using dataex.

    When you say "graph a...." it is not clear what you mean. Apparently not predicted vs actual. To graph something, you need to tell us the two things you want to use. You can always generate predicted values -assuming you used xtreg to estimate the model, look at xtreg postestimation to see how to generate predicted values. You should look at the graphic documentation on how to do graphs. You could even do this with
    predict yhat,xbu
    scatter yhat y

    Assuming you don't have too many panels, you can fit a panel fe estimate using regress with i.panel as an explanatory variable. Then you can use one of the pre-designed graphs noted in the regress documentation.

    Comment

    Working...
    X