smdi_check_covar function

This is a utility function to help check input data and covariates provided