MATLAB: Fitnlm and dumthe variables

dummy variablesfitnlm

Hi all, Fitnlm allows automatic creation of dummy variables, if one input the categorical predictor as a nominal or ordinal array. It worked fine for me with fitlm. But I do not understand how I know how many input arguments I get after using the automatic creation of dummy variables. As I need to specify my beta0 I need to know how many input arguments I have. Thank you!

Best Answer

I haven't used the automatic creation of dummy variables, so I don't know the answer to your question. However, the dummyvar() function might also be helpful for you, so I thought I'd mention it.