[R] BRugs: error when compiling model

2013-08-05 Thread Nash, Charles T C
Using: R version 3.0.1 (2013-05-16) -- Good Sport Platform: x86_64-w64-mingw32/x64 (64-bit) OpenBUGS version 3.2.2 rev 1063 BRugs version 0.8-1 Hi there, When using the modelCompile() function in BRugs package I get the following error: Error in handleRes(res) : NA In addition: Warning

[R] Goodness of fit for negative binomial model

2009-03-20 Thread t c
Dear r list,   I am using glm.nb in the MASS package to fit negative binomial models to data on manta ray abundance, and AICctab in the bbmle package to compare model IC.  However, I need to test for the goodness of fit of the full model, and have not been able to find a Pearson's Chi Squared

[R] using stepAIC with negative binomial regression - error message help

2009-02-17 Thread t c
Dear List, I am having problems running stepAIC with a negative binomial regression model.  I am working with data on manta ray abundance, using 20 predictor variables.  Predictors include variables for location (site), time (year, cos and sin of calendar day, length of day, percent lunar

[R] Bubble plot on shapefile - projection issues?

2009-01-09 Thread t c
Dear R help list,   I am working on some data from a study on the habitat use and movement patterns of fish using a marine protected area in Hawaii.  We have a number of acoustic receivers in a MPA, and any time a tagged fish passes within range it records the date and time of detection.  I am

[R] Faster way to combine data sets with different date ranges

2008-11-07 Thread t c
I am trying to combine two data sets, one with daily values and one with weekly values.  SurveyData conatins environmental data collected on a daily basis.  sat.data contains satellite sea surface temperature that is an average of satellite measurements over a six day period.  I would like to

[R] Combining many files into one

2008-11-03 Thread t c
I have a few hundred .csv files in a folder on my hard drive, and I would like to combine them all into one file.  They are all the same data, but the program that collected the data saved a file every 4 hours.  I can combine the files one at a time using rbind, but am having a problem

[R] Subsetting data in a loop

2008-10-29 Thread t c
I need some help with sub-setting my data.  I am trying to divide a data frame into multiple data frames based on the year collected, and stored in a list with each new data frame labeled with year X where X is the year the data was collected.  When I run my current code I get nine error