
Profile-likelihood CI for per-trait phylogenetic signal H^2
Source:R/profile-derived.R
profile_ci_phylo_signal.RdFor fits with phylo_indep(species) and indep(0 + trait | species)
but no species-level latent() term, H^2 = sigma2_phy / (sigma2_phy + sigma2_non) is a 2-component ratio profileable via a single linear
contrast (log_sd_phy_diag[t] - theta_diag_species[t]).
Arguments
- fit
A fit returned by
gllvmTMB().- trait_idx
Integer index of the trait, or
NULLfor all.- level
Confidence level. Default 0.95.
Details
For richer 3-component decompositions (PGLLVM with phylo_latent() plus
a species-level latent decomposition with Psi), full profile requires
fix-and-refit on the multi-component constraint and remains planned. The
current method = "profile" entry point returns the existing numerical
delta-method Wald bounds with a clear method = "wald(numeric)" label
rather than returning empty bounds.