I am trying to use the dredge function and fix a covariate (Obs). However I get an error message. I looked for information regarding the fix command for distsamp and I could not find it. I will appreciate any help with this.
GRWEumf <- unmarkedFrameDS(y=as.matrix(GRWE_50mVegPercen[,5:9]),
siteCovs=data.frame(GRWE_50mVegPercen[,c("Obs","Rain","Wind","Time","Noise","Clouds","PN","LNEdge","AgroFo","SecVeg","Wetland")]),
dist.breaks=c(0,10,20,30,40,50), unitsIn="m", survey="point")
> GRWE_5<- distsamp(~Obs~PN+LNEdge+AgroFo+SecVeg+Wetland, GRWEumf)
> (GRWE_5<- distsamp(~Obs~PN+LNEdge+AgroFo+SecVeg+Wetland, GRWEumf))
Call:
distsamp(formula = ~Obs ~ PN + LNEdge + AgroFo + SecVeg + Wetland,
data = GRWEumf)
Density:
Estimate SE z P(>|z|)
(Intercept) 1.802 0.314 5.742 9.37e-09
PN -0.204 0.297 -0.685 4.93e-01
LNEdge -0.024 0.068 -0.353 7.24e-01
AgroFo 0.241 0.180 1.344 1.79e-01
SecVeg 0.947 0.216 4.386 1.16e-05
Wetland -1.273 0.248 -5.126 2.97e-07
Detection:
Estimate SE z P(>|z|)
sigma(Intercept) 3.0987 0.0721 42.97 0.0000
sigmaObsE 0.1729 0.1076 1.61 0.1081
sigmaObsJ -0.1684 0.0862 -1.95 0.0507
sigmaObsP 0.0824 0.0774 1.06 0.2870
AIC: 1662.517
> MuMIn:::fixCoefNames(names(coef(GRWE_5)))
[1] "lam(Int)" "lam(PN)" "lam(LNEdge)" "lam(AgroFo)"
[5] "lam(SecVeg)" "lam(Wetland)" "p(sigma(Intercept))" "p(sigmaObsE)"
[9] "p(sigmaObsJ)" "p(sigmaObsP)"
attr(,"order")
[1] 1 1 1 1 1 1 1 1 1 1
> GRWE6 <- dredge(GRWE_5,fixed=~p(Obs))
Warning message:
In dredge(GRWE_5, fixed = ~p(Obs)) :
not all terms in 'fixed' exist in 'global.model'