Angelo,
Two things that must be important to consider, is applying other methods in
the application you seem to be using the bfgs, but maybe there are other
that can help you.
other thing that you can do is apply the nested logit more manually check
this web site:

http://stackoverflow.com/questions/5906272/step-by-step-procedure-on-how-to-run-nested-logistic-regression-in-r

Juan

On Mon, Nov 21, 2011 at 4:12 PM, Angelo Moreno <amorenos1@ucentral.edu.co>wrote:

> Hi, I have a data frame imported from .txt format, it's so similar to the
> data
> ("TravelMode", package = "AER")
> I`m working with de "mlogit" package, when I execute the example code for
> the TravelMode data, it functions so good, but when I use it for my data,
> it
> doesn't run, why?, maybe for the format, or what could be happening?
> Thanks
>
> P.S: Code for TravelMode data
> nl <- mlogit(choice ~ vcost + wait | income, TravelMode, shape = "long",
>                  alt.var = "mode", print.level = 0, method = "bfgs",
>                  nests = list(public = c("train", "bus"), other =
> c("air","car")),
>                  tol = 1)
>
> My data and code is the same,only I change the names of variables.
>
> This is my code and ERROR:
>
> nl <- mlogit(Utility~Income+ Prices  |Distance_km , uno,shape="long",
> + alt.var = "Teather",print.level = 0, method = "bfgs",
> + nests = list(places = c("Americas", "CentroMayor", "Tunal")),tol = 1)
>
> Error en solve.default(crossprod(attr(x, "gradi")[, !fixed])) :
>  sistema es computacionalmente singular: número de condición recíproco =
> 1.00568e-28
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Nested-Logit-Model-Problem-tp7017998p7017998.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Juan Tomás Sayago Gómez
Graduate Research Assistant
West Virginia University
886 Chestnut Ridge Road, Room 520
P.O. Box 6825
Morgantown, WV 26506-6825

	[[alternative HTML version deleted]]

