Announcement

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

  • panel data: xi:reg equivelent code

    Hello Everyone:
    Recently I am replicating and learning an AER paper. There is one line code really bother me.
    Our professor requires us to write the equivalent code using xtreg...,
    Can anyone help me?
    Thanks very much
    The code is

    xi: reg totyrs dropage i.yearat14 i.pob age age2 age3 age4 i.censyear female fraction_rural_sm fraction_manufacturing_sm logschlexp schoolnum_pc_sm teachernum_pc_sm [w=wght], cluster(clust)


  • #2
    Look up the documentation for xtreg. You'll need to xtset your data first. Don't ask us questions when you have not bothered to read the documentation.

    Comment

    Working...
    X