Estimation of time-dependent parameters in linear models using cross-sections, panels, or both