| From: | Matt Giovanni <matthew...@gmail.com> |
| To: | unmarked <unma...@googlegroups.com> |
| Date: | 06/27/2011 05:24 PM |
| Subject: | [unmarked] Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 0, 1 |
| Sent by: | unma...@googlegroups.com |
I couldn't reproduce the error, but I know that predict() needs to do a better job handling the model "terms". If Andy hasn't figured out the problem yet, could you try to modify this code to trigger the error? Note that the model formula is equivalent to yours.
library(unmarked)
a <- rnorm(10)
b <- rnorm(10)
y <- matrix(rbinom(30, 1, 0.5), 10, 3)
umf <- unmarkedFramePCount(y=y, siteCovs=data.frame(a=a, b=b))
(fm <- pcount(~1 ~scale(a) * scale(b), umf))
DF <- data.frame(a=-3:3, b=-3:3)
predict(fm, type="state", newdata=DF, backTran=FALSE, appendData=FALSE)
Richard
_____________________________________
Richard Chandler
USGS Patuxent Wildlife Research Center
-----unma...@googlegroups.com wrote: -----
To: unma...@googlegroups.com
From: Andy Royle <aro...@usgs.gov>
Sent by: unma...@googlegroups.com
Date: 07/01/2011 01:05PM
cc: unmarked <unma...@googlegroups.com>
Subject: Re: [unmarked] Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 0, 1
hi Matt,
thanks
andy
J. Andy Royle
Research Statistician
12100 Beech Forest Rd.
Laurel, MD 20708
http://profile.usgs.gov/professional/mypage.php?name=aroyle
phone: 301-497-5846
fax: 301-497-5545
From:
Matt Giovanni <matthew...@gmail.com>
To:
unmarked <unma...@googlegroups.com>
Sent by:
unma...@googlegroups.com
Richard
_____________________________________
Richard Chandler
USGS Patuxent Wildlife Research Center
301-497-5696
-----unma...@googlegroups.com wrote: -----
To: unma...@googlegroups.com
From: Richard Chandler <rcha...@usgs.gov>
Sent by: unma...@googlegroups.com
Date: 07/01/2011 02:49PM
To: unma...@googlegroups.com
From: Matthew Giovanni <matthew...@gmail.com>
Sent by: unma...@googlegroups.com
Date: 07/03/2011 07:49PM
| From: | Matthew Giovanni <matthew...@gmail.com> |
| To: | unma...@googlegroups.com |
| Date: | 07/03/2011 08:08 PM |
| Subject: |
| Re: [unmarked] Error in data.frame(..., check.names = FALSE): arguments imply differing number of rows: 0, 1 |
| Sent by: | unma...@googlegroups.com |