[R] error with as.factor raster

2013-12-16 Thread Lauria, Valentina
Dear List members, I am trying to map the habitat suitability of Nephrops and one of my predictor is a categorical variable. However when I utilised the command as.factor (before to create my rasters stack) I get the error message Error in 1:ncol(r) : argument of length 0. Could anyone help

[R] Predicting hurdle model results on spatial scale

2013-10-21 Thread Lauria, Valentina
...@uibk.ac.at] Sent: 18 October 2013 18:57 To: Lauria, Valentina Cc: r-help@r-project.org Subject: Re: [R] hurdle model error why does need integer values for the dependent variable? On Fri, 18 Oct 2013, Lauria, Valentina wrote: Dear list, I am using the hurdle model for modelling the habitat of rare

[R] hurdle model error why does need integer values for the dependent variable?

2013-10-18 Thread Lauria, Valentina
Dear list, I am using the hurdle model for modelling the habitat of rare fish species. However I do get an error message when I try to model my data: test_new1-hurdle(GALUMEL~ depth + sal + slope + vrm + lat:long + offset(log(haul_numb)), dist = negbin, data = datafit_elasmo) Error in

[R] habitat mapping of sharks

2013-10-09 Thread Lauria, Valentina
Dear All, I am trying to model the habitat mapping of 4 sharks species and my data are zero inflated and positively skewed. The zero percentages in my data vary between 56-77%. I did some tests fitting GAMs with negative binomial family (with theta between 1-10). Is this the best way to go?

[R] problems with package COZIGAM

2013-10-08 Thread Lauria, Valentina
Dear All I am having problems to install the package COZIGAM. Despite I have the update version of R (3.0.2) when I try to load the package I cannot find it in the list of available packages. If I try to install it from a local zip file I do get this error message: Error in

Re: [R] Problem with zero-inflated negative binomial model in sediment river dynamics

2013-08-14 Thread Lauria, Valentina
://www.nephrops.eu From: Cade, Brian [ca...@usgs.gov] Sent: 14 August 2013 16:15 To: Achim Zeileis Cc: Lauria, Valentina; r-help@R-project.org Subject: Re: [R] Problem with zero-inflated negative binomial model in sediment river dynamics Z is correct, of course. I

[R] Problem with zero-inflated negative binomial model in sediment river dynamics

2013-08-13 Thread Lauria, Valentina
Dear All, I am running a negative binomial model in R using the package pscl in oder to estimate bed sediment movements versus river discharge. Currently we have deployed 4 different plates to test if a combination of more than one plate would better describe the sediment movements when the

[R] produce a map in ARCGIS from a GAM output

2013-04-12 Thread Lauria, Valentina
Hi, I am trying to predict the habitat suitability of lobster with GAMs. I need to produce a map in ArcGis of the predicted densities. I did some search and the function predict.gam seems to do the job. Is this the right way to do it? when you apply the function you get the predicted values

Re: [R] produce a map in ARCGIS from a GAM output

2013-04-12 Thread Lauria, Valentina
National University of Ireland, Galway Ireland www.nephrops.eu From: b.rowling...@gmail.com [b.rowling...@gmail.com] on behalf of Barry Rowlingson [b.rowling...@lancaster.ac.uk] Sent: 12 April 2013 14:15 To: Lauria, Valentina Cc: r-help@R-project.org Subject