multinom_fill: Fill gaps in age-length keys

fill.multinomR Documentation

Fill gaps in age-length keys

Description

Fill gaps in age-length keys

Usage

## S3 method for class 'multinom'
fill(df, acol, lcol, id = NULL, smooth = FALSE)

Arguments

df

Data.frame with columns length and ages, where NA values need to be replaced

acol

Vector of ids of age columns

lcol

Id of length column (integer)

id

Identifier for warning messages

zero

Logical. Allow replacement of zero values.

Details

Functions that uses the nnet::multinom function to impute age probabilities for lengths that were found in LF samples, but absent of AL samples.


iml-assess/catchR documentation built on Nov. 27, 2022, 7:35 p.m.