In other words, when I do nnet(...) I can use the size parameter to control the number of units in the hidden layer. My particular model requires outputting probabilities so I wanted logistic units and so I turned to multinom from the nnet package to output type='probs' in my predict function. How can I pass down a size argument? When I call it with, say, size=5 or something I get an error:
formal argument "size" matched by multiple actual arguments
size = 0in its calls to nnet.default. I suspect there's a mathematical reason for this, but don't feel comfortable speculating further. - joranmultinomcan handle factor responses with 3 or more levels, while logistic regression (as implemented inglm) is for binary responses only. - Hong Ooi