makeLhoods function

makeLhoods: function to make likelihoods.

makeLhoods: function to make likelihoods.

Function to make the datasets into likelihoods.

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 fm_mesh_2d 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.