track the occurrence of dummy variable names in a fit command