makeLhoods {PointedSDMs}R Documentation

makeLhoods: function to make likelihoods.

Description

Function to make the datasets into likelihoods.

Usage

makeLhoods(
  data,
  formula,
  family,
  mesh,
  ips,
  paresp,
  ntrialsvar,
  markstrialsvar,
  speciesname,
  speciesindex,
  samplers,
  pointcovs = NULL
)

Arguments

data

A list of sf objects containing the datasets for which likelihoods need to be constructed.

formula

A list of formulas to add to the likelihoods.

family

A list of vectors containing the families within each dataset.

mesh

An inla.mesh object.

ips

Integration points used.

paresp

The response variable name for the presence absence datasets.

ntrialsvar

The trials variable name for the presence absence datasets.

markstrialsvar

The trial variable name for the binomial marks.

speciesname

The name of the species variable used.

speciesindex

A vector containing the numeric index of where the species occurs in the data

samplers

A list of integration domains for the datasets.

pointcovs

A vector of the point covariates used in the model.


[Package PointedSDMs version 2.1.0 Index]