fitting multinomial logistic regression

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

fitting multinomial logistic regression

suman dhara
Sir,
I want to fit a multinomial logistic regression in R.I think mlogit() is the
function for doing this. mlogit () is in packege globaltest.But, I can not
install this package. I use the following:

install.packages("globaltest")

Can you help me?

Regards,
Suman Dhara

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: fitting multinomial logistic regression

Ben Bolker
suman dhara <suman.dhara89 <at> gmail.com> writes:

> I want to fit a multinomial logistic regression in R.I think mlogit() is the
> function for doing this. mlogit () is in packege globaltest.But, I can not
> install this package. I use the following:
>
> install.packages("globaltest")
>
> Can you help me?
>


  Only if you give us some kind of clue about what precisely is not
working.  What version of R are you using (post results of sessionInfo() ) ,
what repository did you choose when prompted, do you have a working
internet connection, *exactly* what error message appeared ... ?

  (Hint: I got "package ‘globaltest’ is not available".  When
I did

library(sos)  ## install this if necessary
findFn("mlogit")

  I found that there was an mlogit package, which installed fine
for me.)

  (Hint #2: it appears that globaltest is in Bioconductor.
You might want to post this query on the bioconductor mailing list.)

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: fitting multinomial logistic regression

sayan dasgupta
To install this package, start R and enter:

    source("http://bioconductor.org/biocLite.R")
    biocLite("globaltest")

Hope that helps


On Mon, Jun 7, 2010 at 12:15 AM, Ben Bolker <[hidden email]> wrote:

> suman dhara <suman.dhara89 <at> gmail.com> writes:
>
> > I want to fit a multinomial logistic regression in R.I think mlogit() is
> the
> > function for doing this. mlogit () is in packege globaltest.But, I can
> not
> > install this package. I use the following:
> >
> > install.packages("globaltest")
> >
> > Can you help me?
> >
>
>
>   Only if you give us some kind of clue about what precisely is not
> working.  What version of R are you using (post results of sessionInfo() )
> ,
> what repository did you choose when prompted, do you have a working
> internet connection, *exactly* what error message appeared ... ?
>
>  (Hint: I got "package ‘globaltest’ is not available".  When
> I did
>
> library(sos)  ## install this if necessary
> findFn("mlogit")
>
>  I found that there was an mlogit package, which installed fine
> for me.)
>
>  (Hint #2: it appears that globaltest is in Bioconductor.
> You might want to post this query on the bioconductor mailing list.)
>
> ______________________________________________
> [hidden email] 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.
>
        [[alternative HTML version deleted]]


______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: fitting multinomial logistic regression

Achim Zeileis-4
In reply to this post by suman dhara
On Sun, 6 Jun 2010, suman dhara wrote:

> Sir, I want to fit a multinomial logistic regression in R.I think
> mlogit() is the function for doing this. mlogit () is in packege
> globaltest.But, I can not install this package. I use the following:

To add to some of the previously given advice:
   - The "globaltest" package provides an mlogit() function that estimates
     a multinomial logit model using (as far as I can see) sum contrasts
     for the coefficients.
   - The "nnet" package provides the function multinom() for the
     multinomial logit model using treatment contrasts for the
     coefficients.
   - The "mlogit" package provides a different function mlogit() that
     provides a wider range of multinomial logit models using not only
     individual-specific variables (as the previous two functions) but
     also alternative-specific variables.

If you have alternative-specific variables, you should probably look at
the "mlogit" package. If not, then I would personally prefer the
multinom() function in "nnet" because it provides a few more extractor
functions and is described in the MASS book by Venables & Ripley.

In addition to that, there are more packages for different flavors of
multinomial models, including the multinom family in the "VGAM" package,
among others...

hth,
Z

> install.packages("globaltest")
>
> Can you help me?
>
> Regards,
> Suman Dhara
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.