pFilt: Particle filter function - runs model in steps between each...

Description Usage Arguments Value

Description

Particle filter function - runs model in steps between each observed data point before using weighted re-sampling of model state at each step to start next

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
pFilt(
  n,
  iState,
  stepFun,
  obsData,
  prms,
  resM = F,
  cluster = F,
  assump,
  likelihoodFunc,
  full = F,
  mat = F,
  birthType
)

Arguments

n

number of particles

iState

function for calculating initial state of particles

stepFun

function for taking parmeters and time point, running model in steps and outputting model state

obsData

observed data to fit model to

prms

model parameters

resM

True/False whether to output likelihood values or results of simulation for plotting figures

cluster

T/F if true, using the cluster if false, run locally

likeFunc

likelihood function - obsolete

Value

if resM = F log likelihood value, if resM = T mean results of simulation


aaronm70/batMods documentation built on Sept. 8, 2021, 7:05 a.m.