Instrumental-variable estimation of a panel data model