Re: [R] Regression on presence/absence matrix

2014-01-25 Thread Ben Bolker
[I don't know whether you cc'd this to r-help or not, I'm cc'ing this back] Without more context it's hard to say very much, and you might be better off on the r-sig-ecol...@r-project.org list , or on CrossValidated (http://stats.stackexchange.com), rather than the general r-help list (this i

Re: [R] Regression on presence/absence matrix

2014-01-25 Thread Ben Bolker
Daniel Patón Domínguez gmail.com> writes: > > > The library of packages that installs with R includes the stats > > package, in the stats package is the glm function for fitting > > generalized linear models. Using glm with a binomial family will fit > > a logistic regression which can be used

Re: [R] Regression on presence/absence matrix

2014-01-25 Thread Daniel Patón Domínguez
> The library of packages that installs with R includes the stats > package, in the stats package is the glm function for fitting > generalized linear models. Using glm with a binomial family will fit > a logistic regression which can be used as you describe. > > If you really feel the need to us

Re: [R] Regression on presence/absence matrix

2014-01-24 Thread Bert Gunter
Rolf et.al: Actually, as I think the query indicates a wholly insufficient statistical background, this question probably should go to SO (stats.stackexchange.com) rather than here. Even if he is told the package (or function in this case) , he is unlikely to be able to use it properly. Cheers, B

Re: [R] Regression on presence/absence matrix

2014-01-24 Thread Rolf Turner
On 25/01/14 00:41, Daniel Patón Domínguez wrote: Dear all: I want to predict a presence/absence vector using a presence/absence matrix of events. What library can do this in R? I will answer your question only if you learn to say ***package*** and NOT "library". The library() function loads

Re: [R] Regression on presence/absence matrix

2014-01-24 Thread Greg Snow
The library of packages that installs with R includes the stats package, in the stats package is the glm function for fitting generalized linear models. Using glm with a binomial family will fit a logistic regression which can be used as you describe. If you really feel the need to use an additio

[R] Regression on presence/absence matrix

2014-01-24 Thread Daniel Patón Domínguez
Dear all: I want to predict a presence/absence vector using a presence/absence matrix of events. What library can do this in R? Many thanks -- Daniel Patón Domínguez Numerical Ecology. Ecology Unit Department of Plant Biology, Ecology