bysort id (year): keep if _n == 1
* 1. Run Fixed Effects quietly xtreg y x, fe stata panel data
This shows what proportion of women are married, and how much of the variation stems from differences between women versus changes within each woman over time. bysort id (year): keep if _n == 1 * 1
xtsum hours work_age grade
areg wage experience union i.year, absorb(id) stata panel data
Models reg ln_wage hours age tenure, vce(cluster idcode) estimates store ols
* Plot a single variable over time for all units (spaghetti plot) xtline gdp