lnorm_prior: lnorm_prior

View source: R/lognormal_funs.R

lnorm_priorR Documentation

lnorm_prior

Description

calculate the log-likelihood contribution for the log-normal prior in CASAL

Usage

lnorm_prior(X, expectation, sigma, negative = TRUE)

Arguments

X

<double>: value/'s to calculate the prior for

expectation

<double>: The expectation of the distribution, this is not the mu parameter because for the lognormal distribution the expectation is not the expectation parameter.

sigma

<double>: The standard deviation of the distribution (in log space)

negative

<bool>: Return the negative log-likelihod if True else if FALSE return just the log-likelihood


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.