collapse (mean) wage experience, by(id)
Assumes the individual effect is random and uncorrelated with the independent variables. stata panel data
: Use the xtset command to define the individual identifier ( ) and the time variable ( Command : xtset id_variable time_variable . collapse (mean) wage experience