Hello everybody, I am hoping you can help me. I just downloaded and installed the "precompiled binary distribution" of R to my Windows machine (running Windows Millennium). (I did not download or install anything else - no packages). I need to run a logistic regression and understand the function I need is polr() or maybe SSlogis(). However, when I try to invoke either function, I get Error: couldn't find function "polr" Error: couldn't find function "SSlogis" I have done some snooping on the website and think I may need the MASS package for polr() and the NLS package for SSlogis(). My questions: 1. Are these indeed the functions I need to run a logistic regression? 2. If so, are the packages with them available for a Windows machine? Thanks a million in advance -- you all are the greatest -- Carrie -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sunday 24 November 2002 08:51 pm, Carrie Beam wrote:> Hello everybody, > > I am hoping you can help me. I just downloaded and installed the > "precompiled binary distribution" of R to my Windows machine (running > Windows Millennium). (I did not download or install anything else - no > packages). > > I need to run a logistic regression and understand the function I need is > polr() or maybe SSlogis(). > > However, when I try to invoke either function, I get > Error: couldn't find function "polr" > Error: couldn't find function "SSlogis" > > I have done some snooping on the website and think I may need the MASS > package for polr() and the NLS package for SSlogis(). > > My questions: > 1. Are these indeed the functions I need to run a logistic regression? > 2. If so, are the packages with them available for a Windows machine?Not sure about your first question, depends on what you want to do (standard logistic regression can be done with the glm function, while polr does proportional odds logistic regression). As for R packages (more commonly referred to as libraries), many of them come with the default R installation, but you have to load them before you can use them. MASS and nls are among them. You should see a full list using library() For more information, try ?glm library(MASS) ?polr etc. Deepayan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sun, 24 Nov 2002, Carrie Beam wrote:> Hello everybody, > > I am hoping you can help me. I just downloaded and installed the > "precompiled binary distribution" of R to my Windows machine (running > Windows Millennium). (I did not download or install anything else - no > packages). > > I need to run a logistic regression and understand the function I need is > polr() or maybe SSlogis(). > > However, when I try to invoke either function, I get > Error: couldn't find function "polr" > Error: couldn't find function "SSlogis" > > I have done some snooping on the website and think I may need the MASS > package for polr() and the NLS package for SSlogis(). > > My questions: > 1. Are these indeed the functions I need to run a logistic regression?Probably not. See ?glm if you mean a binomial logistic regression. nls/SSlogis will give you a least-squares logistic fit.> 2. If so, are the packages with them available for a Windows machine?Yes, just look at the results of library(). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Apparently Analagous Threads
- How to understand output from R's polr function (ordered logistic regression)?
- ordered logistic regression - cdplot and polr
- Likelihood ratio test for proportional odds logistic regression
- Problem with ordered logistic regression using polr function.
- Fitting a logistic regression