Skip to contents

paths() returns one row per fitted fixed-effect coefficient across all nodes, labelled by the distributional component it targets (mu, sigma, nu, zi, hu, rho12, sd_*). This makes explicit that a path to sigma is a path to residual scale, not to the mean.

Usage

paths(object, ...)

# S3 method for class 'drm_sem'
paths(object, ...)

Arguments

object

A drm_sem object.

...

Unused.

Value

A data frame with columns from, to, component, link, term, estimate, std.error, statistic, p.value, endogenous.

References

Wright S (1934). “The Method of Path Coefficients.” The Annals of Mathematical Statistics, 5(3), 161–215. doi:10.1214/aoms/1177732676 .

Shipley B (2009). “Confirmatory Path Analysis in a Generalized Multilevel Context.” Ecology, 90(2), 363–368. doi:10.1890/08-1034.1 .

Lefcheck JS (2016). “piecewiseSEM: Piecewise Structural Equation Modelling in R for Ecology, Evolution, and Systematics.” Methods in Ecology and Evolution, 7(5), 573–579. doi:10.1111/2041-210X.12512 .

Rigby RA, Stasinopoulos DM (2005). “Generalized Additive Models for Location, Scale and Shape.” Journal of the Royal Statistical Society Series C: Applied Statistics, 54(3), 507–554. doi:10.1111/j.1467-9876.2005.00510.x .

Examples

if (FALSE) { # \dontrun{
sem <- drm_sem(
  size = drm_node(drmTMB::bf(size ~ temp + habitat, sigma ~ temp),
                  family = stats::gaussian()),
  abundance = drm_node(drmTMB::bf(abundance ~ size + temp, zi ~ habitat),
                       family = drmTMB::nbinom2()),
  data = dat)
paths(sem)
} # }