There's no built in variation - if you want the availability parameter to vary you'll have to specify the appropriate covariates yourself.
I think whether you can vary availability specifically by subsite depends on exactly what you mean by that. For example suppose each site is divided into subsites designated A, B, and C (that is, site 1 has subsites A, B, C and site 2 also has subsites designated A, B, C). This could be something like direction (north subsite, east subsite, south subsite) or order sampled (first subsite sampled, 2nd subsite sampled, etc.) In this case you have multiple data points for each level of 'subsite' covariate (A/B/C/A/B/C) and you can estimate the associated parameters.
On the other hand suppose you are uniquely identifing each subsite across all sites. For example at site 1 you have unique subsites coded A, B, C, and at site 2 you have unique subsites D, E, F and so on. In this case your covariate for subsite would have just a single data point for each possible level of the covariate (A/B/C/D/E/F). I do not think you can estimate parameters for the subsite covariate because you just have 1 data point per level. Plus, even so, you'd be estimating way too many parameters (#sites * #subsites per site - 1) for the unmarked optimization to realistically handle.
See below for a quick example simulation.
Ken
library(unmarked)
# Simulate some goccu data
M <- 100
S <- 3
J <- 5
y <- matrix(NA, M, S*J)
# Example with common subsite codes across sites
ysc <- data.frame(subsite = rep(c("A","B","C"), 100))
head(ysc)
blank <- unmarkedFrameGOccu(y=y, yearlySiteCovs=ysc, numPrimary = S)
cf <- list(psi=0, phi=c(0, -0.5, 0.5), det=0)
umf <- simulate(blank, psiformula=~1, phiformula=~subsite, pformula=~1,
coefs=cf)[[1]]
# recovers estimates
goccu(~1, ~subsite, ~1, umf)
# Now suppose every subsite code is unique
# simulate new dataset
ysc <- data.frame(subsite = factor(1:(M*S)))
head(ysc)
blank <- unmarkedFrameGOccu(y=y, yearlySiteCovs=ysc, numPrimary = S)
# Need a parameter for all subsites (-1 for the intercept)
cf <- list(psi=0, phi=c(0, rnorm(M*S-1)), det=0)
umf <- simulate(blank, psiformula=~1, phiformula=~subsite, pformula=~1,
coefs=cf)[[1]]
# doesn't work both due to too many parameters and lack of information
goccu(~1, ~subsite, ~1, umf)
> >>>>>>>> ------------------------------
> >>>>>>>> *From:*
unma...@googlegroups.com <
unma...@googlegroups.com> on
> >>>>>>>> *Sent:* Monday, December 13, 2021 23:48
> >>>>>>>> *To:* unmarked <
unma...@googlegroups.com>
> >>>>>>>> *Subject:* [unmarked] multi-method models implemented in
> >>>>>>>> 'unmarked'?
> >>>>>>>>
> >>>>>>>> Hello all,
> >>>>>>>>
> >>>>>>>> I was wondering if single-season multi-method models have been
> >>>>>>>> implemented in the 'unmarked' package yet. I know they are in Presence and
> >>>>>>>> Mark. I looked in the package literature but didn't find anything and just
> >>>>>>>> wanted to check here to see if I missed anything.
> >>>>>>>>
> >>>>>>>> We surveyed for bats with mist net arrays paired with acoustic
> >>>>>>>> detectors and would like to model average detectability of each method for
> >>>>>>>> occupancy estimates.
> >>>>>>>>
> >>>>>>>> Thanks for your help.
> >>>>>>>> Alan Hitch
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> You received this message because you are subscribed to the Google
> >>>>>>>> Groups "unmarked" group.
> >>>>>>>> To unsubscribe from this group and stop receiving emails from it,
> >>>>>>>> send an email to
unmarked+u...@googlegroups.com.
> >>>>>>>> To view this discussion on the web visit
> >>>>>>>>
https://groups.google.com/d/msgid/unmarked/a49b77f0-1a1c-4e4e-b8f3-0312839fce8en%40googlegroups.com
> >>>>>>>> <
https://che01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funmarked%2Fa49b77f0-1a1c-4e4e-b8f3-0312839fce8en%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cmarc.kery%40vogelwarte.ch%7C4e447f38474049dd922808d9be8ef649%7C251ae8d19a904569a35b9d2bc41188d2%7C1%7C0%7C637750344501938479%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IcsxFCAGE%2Fq9Dkjuf0z7ZUeAQU6IcG8XINwQUMo1gD4%3D&reserved=0>
> >>>>>>>> .
> >>>>>>>>
> >>>>>>>
>
> --
> *** Three hierarchical modeling email lists ***
> (1) unmarked (this list): for questions specific to the R package unmarked
> (2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
> (3) HMecology: 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 "unmarked" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
unmarked+u...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/unmarked/6e50475a-e31f-4505-8e5a-229164e9cf7an%40googlegroups.com.