Essays on long memory time series and panel models