[R] How would you do a logistic analysis

Jonathan Baron baron at cattell.psych.upenn.edu
Wed Sep 11 12:58:24 CEST 2002


On 08/29/02 19:36, chromatonus 712 wrote:
>On two lists of data (in a matrix perhaps?) And may i also know where I can 
>find the complete documentation of how to use all the functions in R? Thank 
>you for your help!

I'm not sure what you mean about doing a logistic regression on
two lists of data.  Do you know that "list" is a type of data in
R?  Perhaps you mean two vectors, x1 and x2, with y as the
dependent variable (coded as 1/0, perhaps).  Then one answer is

summary(glm(y ~ x1 + x2,family=binomial))

You need to read a bit to get exactly what you want.

You can find documentation for functions in R in three places.
First, documentation of functions in the packages you have (base,
etc.)  comes with the functions.  You get them with help().
Second, see http://cran.r-project.org/doc/manuals/refman.pdf in
the "Manuals" section of www.r-project.org, for all functions,
whether you have them or not.  Third, I have these all on the web
at the URL below.

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page:            http://www.sas.upenn.edu/~baron
R page:               http://finzi.psych.upenn.edu/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list