[R-sig-eco] Poisson regression

Highland Statistics Ltd highstat at highstat.com
Thu May 24 17:40:59 CEST 2012





> ------------------------------
>
> Message: 2
> Date: Thu, 24 May 2012 11:41:06 +0430
> From: Mahnaz Rabbaniha<rab.mahnaz at gmail.com>
> To: r-sig-ecology<r-sig-ecology at r-project.org>
> Subject: [R-sig-eco] Poisson regression
> Message-ID:
> 	<CANLCanXsF0zpyC-R22F32VeEEyJq7KfN8KsGKXFfC44UtY_64Q at mail.gmail.com>
> Content-Type: text/plain
>
> Dear all
>
>
> to find relation between non-normal response with independents variable i
> use this code:
>
> model1<-gam(Clupeidae~s(depth)+s(temperature)+s(salinity),poisson)
>
> the result shown is:
>
> There were 50 or more warnings (use warnings() to see the first 50)
>> warnings(model1)
> Warning messages:
> 1: In dpois(y, mu, log = TRUE) : non-integer x = 2.079542 Error in
> cat(list(...), file, sep, fill, labels, append) :
>    argument 2 (type 'list') cannot be handled by 'cat'
>
>
> what is meaning it?
>
> do i allow use it for continue?



Check whether your Clupeidae variable contains non-integers.......

Alain


> thanks


-- 

Dr. Alain F. Zuur
First author of:

1. Analysing Ecological Data (2007).
Zuur, AF, Ieno, EN and Smith, GM. Springer. 680 p.
URL: www.springer.com/0-387-45967-7


2. Mixed effects models and extensions in ecology with R. (2009).
Zuur, AF, Ieno, EN, Walker, N, Saveliev, AA, and Smith, GM. Springer.
http://www.springer.com/life+sci/ecology/book/978-0-387-87457-9


3. A Beginner's Guide to R (2009).
Zuur, AF, Ieno, EN, Meesters, EHWG. Springer
http://www.springer.com/statistics/computational/book/978-0-387-93836-3


4. Zero Inflated Models and Generalized Linear Mixed Models with R. (2012) Zuur, Saveliev, Ieno.
http://www.highstat.com/book4.htm

Other books: http://www.highstat.com/books.htm


Statistical consultancy, courses, data analysis and software
Highland Statistics Ltd.
6 Laverock road
UK - AB41 6FN Newburgh
Tel: 0044 1358 788177
Email: highstat at highstat.com
URL: www.highstat.com
URL: www.brodgar.com



More information about the R-sig-ecology mailing list