Hi Eric,
Dht ninja here. Just reviewed this conversation from a year ago and checking whether there were any updates re variance component analysis?
I think I've managed to extract the component variances for CDS, MCDS and MRDS (likelihoods all estimated in dht()) using a pretty simple function that works for mentioned model types. In the example below, my dht() object is FG.roo.CDS.hn.dht
comvar.er <- function(a) {
ComVar.er <- ((a[["clusters"]][["vc"]][["er"]]/
a[["clusters"]][["vc"]][["total"]]) * 100)
return(ComVar.er)
}
and
comvar.f0 <- function(a) {
ComVar.f0 <- ((a[["clusters"]][["vc"]][["detection"]][["variance"]]/
a[["clusters"]][["vc"]][["total"]]) * 100)
return(ComVar.f0)
}
comvar.f0(FG.roo.CDS.hn.dht)
I haven't used this approach before so was just after some validation / any suggestions for efficiency gains (I assume a call for this function is already written into the Distance package).
FYI the data is the same for each model (except MR has 2 observers) and I'm looking at how adding complexity affects bias and precision. The relative contribution of the detection function to total variance appears to be increasing as more complex models account for sources of variance like observer and aircraft speed. This is what I think is happening as the encounter rate doesn't change because the data is the same - unless the MR model affects encounter rate.
Cheers,
Evan