I am trying to figure out how observation covariates are formatted within an unmarkedFrameOccu object. I know that these covariates are represented as vectors rather than with a matrix like structure as done with spOcc but am unsure how these vector are constructed. I asked AI and initially AI said that all covariate vectors in unmarked are constructed from a data frame column-wise but it is apparent that this cannot be true. The first column of a detection matrix I am using has no NA values but the first set of the elements in the one observational covariate shows “3 NA NA NA NA…”. After much iterating AI said that while the covariate values are definitely correctly associated with the detection matrix, the order of the elements inside the vectors is not predictable and that if one wants to add a covariate it should be passed to the unmarkedFrameOccu() function when constructing the unmarked object. In other words it says one should never first construct the unmarked object and then add a covariate.
I am now passing all covariates I want when I create the unmarkedFrameOccu object but I find it difficult to believe that the unmarkedFrameOccu() function would not have a systematic way of arranging the covariate vectors and to me it looks like the vector is constructed row-wise rather than column-wise. But AI is completely adamant that unmarked would not use row-wise construction so I thought worth asking here if anyone knows how these vectors are constructed?
Many thanks
Greg
--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2021) and Schaub & Kéry (2022)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/8b278577-9697-4159-8da4-04fb0c64682fn%40googlegroups.com.