sa2params: Convert SA output to model parameter objects

View source: R/runSA.R

sa2paramsR Documentation

Convert SA output to model parameter objects

Description

Convert the output of runSA / saEndpoint into parameter objects in (extended) maximum pairwise entropy model: h, J, and optionally g when environmental parameter matrix is specified.

Usage

sa2params(sa, env = NULL)

Arguments

sa

A list in the form list(param_matrix, enmat) where param_matrix contains estimated parameters.

env

Optional numeric vector of environmental values (column names correspond to environmental factors).Default is NULL.

Value

A list with elements he (h), je (J), ge (g or NULL), and hge (combined field).


ELAplus documentation built on May 28, 2026, 5:09 p.m.