Analytical wavefunctions from quantum Monte Carlo simulations