Regarding the stats themselves--due to small sample size of cryptic species, they aren't going to be of statistically significant value for this study. Just means that this study needs to be replicated for a longer period of time! :)
Mostly my concern is that the values for this specific species are so outrageous I think there is user error on my end regarding the coding that may need to be corrected. Here is the basic lines of coding thus far:
#example from Fiske and Chandler 2011 "unmarked: An R package for Fitting Hierarchical Models of Wildlife Occurrence and Abundance"
y <- sevenday[,26:43]#rows of Perhaps I should have provided more information in my initial post, apologies. Your questions are welcomed.
This is a 120 sample period, verified in 7-day increments. There are 45 site locations. The variables (habitat_classification, basal_area_hectare (basal area per hectare), elevation, trees_per_hectare) are all site-specific covariates. Those are unique to each site but static.
Regarding the stats themselves--due to small sample size of cryptic species, they aren't going to be of statistically significant value for this study. Just means that this study needs to be replicated for a longer period of time! :)
Mostly my concern is that the values for this specific species are so outrageous I think there is user error on my end regarding the coding that may need to be corrected. Here is the basic lines of coding thus far:
"##read in the data
sevenday <- read_csv("sevenday.csv")
#View(sevenday)
#example from Fiske and Chandler 2011 "unmarked: An R package for Fitting Hierarchical Models of Wildlife Occurrence and Abundance"
#M=45 J=(120/7)=18 visits over 7 day increments
##had to remove cameras with no site covs or test stats won't run correctly
y <- sevenday[,26:43 ]#rows of spp detection "dates;" (7 day camera trap visit)
y
##set up Site and Observed Covariates
siteCovs <- as.data.frame(sevenday[,2:7])
obsCovs= list(cov2=sevenday[,26:43])
siteCovs
obsCovs
##get output on data
umf <- unmarkedFrameOccu(y = y, siteCovs = siteCovs, obsCovs = obsCovs)
summary(umf)
fmnull <- occu(~ 1 ~ Trap_days, umf)
fmnull
fm1 <- occu(~ Habitat_classification ~ Trap_days, umf)
fm1
fm2 <- occu(~ Elevation ~ Trap_days, umf)
fm2
fm3 <- occu(~ Basal_area_hectare ~ Trap_days, umf)
fm3
fm4 <- occu(~ Trees_per_hectare ~ Trap_days, umf)
fm4
fm5 <- occu(~ Habitat_classification + Elevation ~ Trap_days, umf)
fm5
fm6 <- occu(~ Habitat_classification + Basal_area_hectare ~ Trap_days, umf)
fm6
... continue to fm15...
Cand.mods <- list("fm1" = fm1, "fm2" = fm2, "fm3" = fm3, "fm4" = fm4, "fm5" = fm5, "fm6" = fm6, "fm7" = fm7, "fm8" = fm8, "fm9" = fm9, "fm10" = fm10, "fm11" = fm11, "fm12" = fm12, "fm13" = fm13, "fm14" = fm14, "fm15" = fm15, "fmnull" = fmnull)
aictab(cand.set = Cand.mods, second.ord = TRUE)
##compute observed chi-square
obs <- mb.chisq(fm6)
obs
##round to 4 digits after decimal point
print(obs, digits.vals = 4)
##compute observed chi-square, assess significance, and estimate c-hat
obs.boot <- mb.gof.test(fm6, nsim = 3)
##note that more bootstrap samples are recommended
##(e.g., 1000, 5000, or 10 000)
obs.boot
print(obs.boot, digits.vals = 4, digits.chisq = 4)"
Based on instructor recommendation of trap_days being the null, and reallocating it to a detection covariate with no success, that doesn't appear to be the issue but was worth the try. I'm certainly not well rehearsed on R, and this is my first really attempt to use unmarked as a tool, so I presume that the coding is wrong on my end.