Constructs an S3 object of class "xnicher" from the outputs of
optimize_niche.
Arguments
- solutions
A data frame with columns
start_id,loglik,convergence, andfull_par(list column).- best
A list with the best solution:
theta,loglik,convergence.- likelihood
Character. One of
"ip_weighted"or"presence_only".- n_starts
Integer. Total number of starting points used.
- var_names
Optional character vector of length
pnaming the environmental variables in the order assumed bybest$theta. Stored on the object sopredict.xnichercan reorder a futureSpatRasterby layer name.- eta
Numeric scalar. The Beta-shape parameter passed to
cvine_choleskyduring fitting (default1.0). Stored on the object sopredict.xnicherreconstructs the same correlation matrix frombest$thetathat the optimizer used. Defaults to1.0(the LKJ-uniform prior), matchingoptimize_niche.