IPMdistance: IPM to Distance

View source: R/IPMdistance.R

IPMdistanceR Documentation

IPM to Distance

Description

This function takes IPM parameters, generates the IPM, generates the st/age distribution for each IPM, and reports back the distance between the reference IPM and the true IPM. Requires that the stable-st/age distribution be defined in the prior step

Usage

IPMdistance(IPM.pre, observed.stage.dist, evaluate.params, i)

Arguments

IPM.pre

IPM parameter dataframe with NA in parameter values that are unknowns

observed.stage.dist

Dataframe of IPM parameters to be solved (cols = params, rows = samples/particles)

evaluate.params

Parameters to evaluate in the parameter slots in the IPM (IPM.pre)

i

sample/particle to be evaluated. This is the index that gets looped through with an apply function.

Value

Distance between the st/age distribution generated by the parameters and the reference distribution


cdbernard/particles documentation built on Jan. 3, 2023, 9:39 a.m.