Functional coefficient estimation with both categorical and continuous data