Hey Chris,
I'm working on doing several iRSF's with two categorial variables: land type and aspect. However, when I enter both into the rsf:
rsf.fit(bear1,UD=bear1ud, R=list( asp =as.factor(aspect), lt=as.factor(land_type)), error=0.1)
the output only treats the first variable (aspect in this case) as categorial and the second factor is treated as continuous in the output:
[1] "OUF"
$DOF
mean area diffusion speed
18.77243 16.29699 64.95178 66.73829
$CI
low est high
asp.5_1 (1/asp.5_1) -14.0278039 -2.66284869 8.7021065
asp.4_1 (1/asp.4_1) -1.4026997 0.01744136 1.4375824
asp.3_1 (1/asp.3_1) -1.4786380 -0.20157482 1.0754884
asp.2_1 (1/asp.2_1) -1.8943559 -0.34808122 1.1981934
lt (1/lt) -0.7514167 -0.16677796 0.4178608
area (square kilometers)
1249.4396230 2173.19837322 3348.4230711
τ[position] (days) 3.2395777 5.70768256 10.0561379
τ[velocity] (hours) 2.5281282 3.08182397 3.7567870
speed (kilometers/day) 15.6509262 17.78314120 19.9121871
diffusion (square kilometers/day) 28.6094049 37.07322960 46.6170842
both factors start with 1 are continuous throughout (i.e. aspect only has 1,2,3,4,5 and land use is 1,2,3,4,5 as well) and when I switch which is first, (i.e. list(lt= as.factor(land_type), asp=as.factor(aspect)) it successfully treats the first one like a factor.
Do you have any suggestions so it treats both as factors?
I am also using rsf.select for the final model, but for now I'm using rsf.fit to make sure the output is correct.
Thank you for your help,
David