should I sell my house? Should I rent my house? best real estate investment

Is it a better investment to sell or rent your house when you decide to move? Real estate is such an illiquid investment and time an important consideration.