Estimation for random coefficient autoregressive model