You're going to have to say more about your text file if you want
meaningful help: specifically, what is in the file: data, output from
other software, etc?
There are probably two questions to deal with here: reading in
whatever is in the text file and mapping it to the correct R object
and setting up the mlogit model. For the reading part, try
read.table() or readLines depending on the formatting. For the mlogit,
look at the mlogit package available on CRAN.
Michael
On Mon, Oct 17, 2011 at 10:52 AM, Bhargava Sana
<Bhargava.Sana at rsginc.com> wrote:> Hello all,
>
> Has anyone tried to create an R mlogit model object from a text file? If
yes, what would be the best way to do it? I already have models that have been
estimated using other software and would like to use R to help me make
predictions for new data.
>
> Thank you!
>
> Bhargava Sana
>
>
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>