The data are not collected, although this is the way that is commonly mentioned, but data are obtained or, better, constructed.
Los datos no se recolectan aunque comúnmente se hable de ello, sino que se obtienen o mejor, se construyen.