The kernel method for multivariate data