Usually R provides a somewhat informative error message about where, exactly, it was surprised by something. Here, I suspect (not certain, without seeing the error message) that R was objecting to the space between HH and size. R cannot tell whether that represents two different variables where you forgot the + sign, or whether it is one variable, HHsize, where you added a space.
--Chris Ryan On Tue, Mar 21, 2023 at 12:47 PM Nandini raj <nandiniraj9...@gmail.com> wrote: > Respected sir/madam > can you please suggest what is an unexpected symbol in the below code for > running a multinomial logistic regression > > model <- multinom(adoption ~ age + education + HH size + landholding + > Farmincome + nonfarmincome + creditaccesibility + LHI, data=newdata) > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.