Learn R Programming

HMMoce (version 1.0.0)

make.L: Combine individual source likelihoods

Description

make.L combines individual likelihoods from various data sources (e.g. SST, OHC) to make overall combined likelihoods for each time point

Usage

make.L(L1, L2 = NULL, L3 = NULL, known.locs = NULL, L.mle.res,
  dateVec = NULL, locs.grid = NULL, iniloc = NULL, bathy = NULL,
  pdt = NULL)

Arguments

L1

a likelihood array

L2

a likelihood array

L3

a likelihood array

known.locs

is data frame of known locations containing named columns of date, lon, lat. Default is NULL.

L.mle.res

is a coarse resolution array of dim(L1) that speeds up the parameter estimation step later on

dateVec

is vector of dates from tag to pop-up date by day. Only required if known.locs is not NULL.

locs.grid

is output grid from setup.locs.grid. Only required if known.locs is not NULL.

iniloc

is matrix of tag and pop locations. Default is NULL because this should be taken care of elsewhere.

bathy

is bathymetry raster (likely from ETOPO1) as acquired by get.bath.data

pdt

is data frame output from read.wc(type='pdt')

Value

a list containing: L, the overall likelihood array and L.mle, a more coarse version of L used later for parameter estimation