[R] mlogit.optim start values problem

Jim Lemon drjimlemon at gmail.com
Fri Nov 13 05:09:11 CET 2015


Hi Alaa,
>From the code you sent, I think that the error may be in one or more lines
preceding the call to mlogit.optim. The "+" prompt means that the R
interpreter thinks there is more to come, and when you added a right brace
("}"), it probably tried to interpret everything back to the last left
brace ("{"). Can you show us the preceding lines?

Jim


On Fri, Nov 13, 2015 at 8:06 AM, Alaa Sindi <alaasindi at gmail.com> wrote:

> Hello All,
>
> I received the following message and I think it is regarding start values
> or the method.
>
> semsem = mlogit.optim ( LL=LL*Prob[i,1] , start = c(1,1,1), method =
> c("bfgs"), iterlim = 2000, tol = 1E-05, ftol = 1e-08, steptol = 1e-10,
> print.level = 2)
> +
> + }
>
> Error in as.name(f[[2]]) :
>   'pairlist' object cannot be coerced to type ‘symbol'
>
> Do you have an idea how to fix this?
>
> Thanks in advance
>
> ______________________________________________
> R-help at 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]]



More information about the R-help mailing list