In this paper, we derive error estimates for generalized interpolation, in particular collocation, in Sobolev spaces. We employ our estimates to collocation problems using radial basis functions and extend and improve previously known results for elliptic problems. Finally, we use meshless collocation to approximate Lyapunov functions for dynamical systems.