Hi Chris,
I started working through the new resource selection function analysis. I had a few questions. My 95% AKDE tortoise home ranges calculated with data obtained with VHF telemetry are a median of 3 ha (range <1 ha to 59 ha) and location fixes are separated by a minimum of 2 days (i.e., coarsely sampled). The resolution of my habitat predictor rasters and UD grid size are 25 sq m. I plan on using rsf.select() on all individuals as a third of my subjects required averaging of different periods of range resident behavior into a single home range (mentioned in this helpful thread). I have 7 habitat predictors of interest: distance to road, percent coverage of vegetation class A, B, and C, and patch density of vegetation class A, B, and C).
Sample code for an individual:
RSF_145 <- rsf.select(tortoise145.16, UD=wakde145.16_hscv, R=list(pland1=pland1, pland2=pland2, pland4=pland4, pd1=pd1, pd2=pd2, pd4=pd4, distance1=distance1),trace=2)
1. In my test runs, the rasters for my habitat predictors extend just beyond the 95% UD (say, 15-20 m). It seems like this may be insufficient and sampling during the analyses may reach beyond that. To remedy this, I'll follow your previously offered guidance of having the raster extend to the 99% UD for each individual,
ctmm::extent(UD,complete=TRUE,level=0.99,level.UD=0.99)
You can confirm if you think this is OK or a potential problem, but I'm particularly mentioning this in case it sheds light on an issue I bring up below.
I have received the following messages while running code that have not been brought up here in the threads.
2. When first importing rasters, warnings given on the first raster.
pland1 <- raster("pland1145.tif")
There were 33 warnings (use warnings() to see them)
Warning messages:
1: Not a validObject(): no slot of name "variable" for this object of class "UD"
3. I could not run the rsf code on one individual at all, and received the error
Error in if (!profile || any(STRUCT$error & !UERE.FIT)) { missing value where TRUE/FALSE needed
4. Lastly, for an individual with a large (~31 ha) home range I was unable to finish the analysis. On one computer I received a message something like "could not compute vector of size 400 xx" and on a different (faster) computer received the message
In rsf.fit(data, UD, R = R, formula = FORM[[i]], trace = max(trace - : Calculation stopped before 1.6 Gb allocation.
In the latter, estimates were calculated for 2/7 habitat predictors. Is the resolution of my UD and rasters (25 sq m) too fine for this analysis? If so, do I have any alternatives before making the UD/rasters coarser to facilitate computation? I have been able to get the model to run on this individual with the large home range with one habitat predictor, but 7 bogs it down. I'm not sure if running different analyses on related habitat predictors would be appropriate (e.g. one rsf for vegetation class patch density (3 predictors), one rsf for vegetation class percent coverage (3 predictors), and one rsf for distance to road).
As always, thank you for your help!
Ross