ADMB Documentation  11.1.2493
 All Classes Files Functions Variables Typedefs Friends Defines
Functions

negative log likelihood functions with other functions useful for model estimation More...

#include "qfclib.h"

Go to the source code of this file.

Functions

dvar_vector boundp (const dvar_vector &x, const double fmin, const double fmax, const dvariable &fpen)
 overloading bounded functions for vector, ADMB has builtin boundp, but not for vector type

df1b2vector boundp (const df1b2vector &x, const double fmin, const double fmax, const df1b2variable &fpen)
dvar_vector invLogitProp (const dvar_vector &p)
 reverse function for LogitProp
df1b2vector invLogitProp (const df1b2vector &p)
df1b2vector log_comb (const df1b2vector &n, const df1b2vector &x)
 overloading function for log_comb(n choose x) for randome effect, used in nllBinomial below, ADMB built in function log_comb() not for vector type in RE
df1b2vector log_comb (const df1b2vector &n, const dvector &x)
df1b2vector log_comb (const dvector &n, const df1b2vector &x)
dvar_vector logitProp (const dvar_vector &a)
 constrain probability vector as 1 and I forgot who create this first, may give credit to Punt., let logit(p)=log(p/(1-p))=a, so p=exp(a)/(1+exp(a)) ~[0,1]
df1b2vector logitProp (const df1b2vector &a)
dvariable mf_upper_bound2 (const dvariable &x, const double fmax, dvariable &fpen)
 constrain parameter with upper threshold, if return bigger than it, then with penalty ADMB have built in function mf_upper_bound(), which have more constrain on the values higher than the bounds with bigger penalty than this version
df1b2variable mf_upper_bound2 (const df1b2variable &x, const double fmax, df1b2variable &fpen)
double nllBeta (const double x, const double a, const double b)
 nll for beta for one sample $ -\ln(\Gamma(a+b)) +\ln(\Gamma(a)) + \ln(\Gamma(b))-(a-1)\ln(x)-(b-1)\ln(1-x) $
dvariable nllBeta (const dvariable &x, const double a, const double b)
dvariable nllBeta (const double x, const dvariable &a, const dvariable &b)
dvariable nllBeta (const dvariable &x, const dvariable &a, const double b)
dvariable nllBeta (const dvariable &x, const double a, const dvariable &b)
dvariable nllBeta (const dvariable &x, const dvariable &a, const dvariable &b)
df1b2variable nllBeta (const df1b2variable &x, const double a, const double b)
 nll for beta for one sample for random effect $ -\ln(\Gamma(a+b)) +\ln(\Gamma(a)) + \ln(\Gamma(b))-(a-1)\ln(x)-(b-1)\ln(1-x) $
df1b2variable nllBeta (const df1b2variable &x, const df1b2variable &a, const double b)
df1b2variable nllBeta (const df1b2variable &x, const double a, const df1b2variable &b)
df1b2variable nllBeta (const double x, const df1b2variable &a, const df1b2variable &b)
df1b2variable nllBeta (const df1b2variable &x, const df1b2variable &a, const df1b2variable &b)
dvariable nllBeta (const dvar_vector &x, const double a, const double b)
 nll for beta for many samples $ -n\ln(\Gamma(a+b)) +n\ln(\Gamma(a)) + n\ln(\Gamma(b))-(a-1)\sum(\ln(x)) -(b-1)\sum(\ln(1-x)) $
dvariable nllBeta (const dvector &x, const dvariable &a, const dvariable &b)
dvariable nllBeta (const dvar_vector &x, const dvariable &a, const dvariable &b)
df1b2variable nllBeta (const df1b2vector &x, const double a, const double b)
 nll for beta for many samples for random effect $ -n\ln(\Gamma(a+b)) +n\ln(\Gamma(a)) + n\ln(\Gamma(b))-(a-1)\sum(\ln(x)) -(b-1)\sum(\ln(1-x)) $
df1b2variable nllBeta (const dvector &x, const df1b2variable &a, const df1b2variable &b)
df1b2variable nllBeta (const df1b2vector &x, const df1b2variable &a, const df1b2variable &b)
double nllBinomial (const double x, const double n, const double p)
 nll for binomial for one sample $ \ln(x!) + \ln((n-x)!) -\ln(n!) - x \ln(p) - (n-x) \ln(1-p) $
dvariable nllBinomial (const dvariable &x, const double n, const double p)
dvariable nllBinomial (const double x, const dvariable &n, const dvariable &p)
dvariable nllBinomial (const dvariable &x, const dvariable &n, const dvariable &p)
df1b2variable nllBinomial (const df1b2variable &x, const double n, const double p)
 nll for binomial for one sample for random effect $ \ln(x!) + \ln((n-x)!) -\ln(n!) - x \ln(p) - (n-x) \ln(1-p) $
df1b2variable nllBinomial (const double x, const df1b2variable &n, const df1b2variable &p)
df1b2variable nllBinomial (const df1b2variable &x, const df1b2variable &n, const df1b2variable &p)
dvariable nllBinomial (const dvar_vector &x, const dvector &n, const double p)
 nll for binomial for many samples $ -\sum\ln{{n_{i}}\choose{x_{i}}}- \sum(x_{i})\ln(p)- \sum(n_{i}-x_{i})\ln(1-p) $
dvariable nllBinomial (const dvector &x, const dvar_vector &n, const dvariable &p)
dvariable nllBinomial (const dvar_vector &x, const dvar_vector &n, const dvariable &p)
df1b2variable nllBinomial (const dvector &x, const df1b2vector &n, const df1b2variable &p)
 nll for binomial for many samples for random effect $ -\sum\ln{{n_{i}}\choose{x_{i}}}- \sum(x_{i})\ln(p)- \sum(n_{i}-x_{i})\ln(1-p) $
df1b2variable nllBinomial (const df1b2vector &x, const dvector &n, const double p)
df1b2variable nllBinomial (const df1b2vector &x, const df1b2vector &n, const df1b2variable &p)
double nllDirichlet (const dvector &p, const dvector &shape)
 nll for dirichlet for one sample $ -\ln\Gamma(\sum_{i}(\alpha_{i})) -\sum_{i}(\ln(\Gamma(\alpha_{i}))) +\sum_{i}((\alpha_{i}-1)\ln(p_{i})) $
dvariable nllDirichlet (const dvar_vector &p, const dvector &shape)
dvariable nllDirichlet (const dvector &p, const dvar_vector &shape)
dvariable nllDirichlet (const dvar_vector &p, const dvar_vector &shape)
df1b2variable nllDirichlet (const df1b2vector &p, const dvector &shape)
 nll for dirichlet for one sample for random effect $ -\ln\Gamma(\sum_{i}(\alpha_{i})) -\sum_{i}(\ln(\Gamma(\alpha_{i}))) +\sum_{i}((\alpha_{i}-1)\ln(p_{i})) $
df1b2variable nllDirichlet (const dvector &p, const df1b2vector &shape)
df1b2variable nllDirichlet (const df1b2vector &p, const df1b2vector &shape)
double nllGamma (const double &x, const double a, const double b)
 nll for gamma for one sample Gamma(a,b) similar to log_gamma_density(r,mu) in admb, in which a=r, b=mu $ -a \ln(b) + \ln(\Gamma(a)) - (a-1)\ln(x)+ bx $
dvariable nllGamma (const dvariable &x, const double a, const double b)
dvariable nllGamma (const double x, const dvariable &a, const dvariable &b)
dvariable nllGamma (const dvariable &x, const dvariable &a, const double b)
dvariable nllGamma (const dvariable &x, const double a, const dvariable &b)
dvariable nllGamma (const dvariable &x, const dvariable &a, const dvariable &b)
df1b2variable nllGamma (const df1b2variable &x, const double a, const double b)
 nll for gamma for one sample for random effect Gamma(a,b) similar to log_gamma_density(r,mu) in admb, in which a=r, b=mu $ -a \ln(b) + \ln(\Gamma(a)) - (a-1)\ln(x)+ bx $
df1b2variable nllGamma (const double x, const df1b2variable &a, const df1b2variable &b)
df1b2variable nllGamma (const df1b2variable &x, const df1b2variable &a, const double b)
df1b2variable nllGamma (const df1b2variable &x, const double a, const df1b2variable &b)
df1b2variable nllGamma (const df1b2variable &x, const df1b2variable &a, const df1b2variable &b)
double nllGamma (const dvector &x, const double a, const double b)
 nll for gamma for many samples $ -na\ln(b) + n\ln(\Gamma(a)) - (a-1)\sum(\ln(x))+ b\sum(x) $
dvariable nllGamma (const dvar_vector &x, const double a, const double b)
dvariable nllGamma (const dvector &x, const dvariable &a, const dvariable &b)
dvariable nllGamma (const dvar_vector &x, const dvariable &a, const dvariable &b)
df1b2variable nllGamma (const df1b2vector &x, const double a, const double b)
 nll for gamma for many samples for random effect $ -na\ln(b) + n\ln(\Gamma(a)) - (a-1)\sum(\ln(x))+ b\sum(x) $
df1b2variable nllGamma (const dvector &x, const df1b2variable &a, const df1b2variable &b)
df1b2variable nllGamma (const df1b2vector &x, const df1b2variable &a, const df1b2variable &b)
double nllInverseGamma (const double x, const double a, const double b)
 nll for inverse gamma for one sample $ -a \ln(b) + \ln(\Gamma(a)) - (a-1)\ln(x)+ b/x $
dvariable nllInverseGamma (const dvariable &x, const double a, const double b)
dvariable nllInverseGamma (const double x, const dvariable &a, const dvariable &b)
dvariable nllInverseGamma (const dvariable &x, const dvariable &a, const dvariable &b)
df1b2variable nllInverseGamma (const df1b2variable &x, const double a, const double b)
 nll for inverse gamma for one sample for random effect $ -a \ln(b) + \ln(\Gamma(a)) - (a-1)\ln(x)+ b/x $
df1b2variable nllInverseGamma (const double x, const df1b2variable &a, const df1b2variable &b)
df1b2variable nllInverseGamma (const df1b2variable &x, const df1b2variable &a, const double b)
df1b2variable nllInverseGamma (const df1b2variable &x, const double a, const df1b2variable &b)
df1b2variable nllInverseGamma (const df1b2variable &x, const df1b2variable &a, const df1b2variable &b)
dvariable nllInverseGamma (const dvar_vector &x, const double a, const double b)
 nll for inverse gamma for many samples $ -na \ln(b) + n\ln(\Gamma(a)) - (a-1)\sum(\ln(x))+ b/\sum(x) $
dvariable nllInverseGamma (const dvector &x, const dvariable &a, const dvariable &b)
dvariable nllInverseGamma (const dvar_vector &x, const dvariable &a, const dvariable &b)
df1b2variable nllInverseGamma (const dvector &x, const df1b2variable &a, const df1b2variable &b)
 nll for inverse gamma for many samples for random effect $ -na \ln(b) + n\ln(\Gamma(a)) - (a-1)\sum(\ln(x))+ b/\sum(x) $
df1b2variable nllInverseGamma (const df1b2vector &x, const double a, const double b)
df1b2variable nllInverseGamma (const df1b2vector &x, const df1b2variable &a, const df1b2variable &b)
double nllLognormal (const double x, const double mu, const double sigma)
 nll for lognormal for one sample $ 0.5\ln(2 \pi) + \ln(x) +\ln(\sigma) + 0.5(\frac{\ln(x)-\mu}{\sigma})^2 $
dvariable nllLognormal (const dvariable &x, const double mu, const double sigma)
dvariable nllLognormal (const double x, const dvariable &mu, const dvariable &sigma)
dvariable nllLognormal (const dvariable &x, const dvariable &mu, const double sigma)
dvariable nllLognormal (const dvariable &x, const double mu, const dvariable &sigma)
dvariable nllLognormal (const dvariable &x, const dvariable &mu, const dvariable &sigma)
df1b2variable nllLognormal (const df1b2variable &x, const double mu, const double sigma)
 nll for lognormal for one sample for random effect $ 0.5\ln(2 \pi) + \ln(x) +\ln(\sigma) + 0.5(\frac{\ln(x)-\mu}{\sigma})^2 $
df1b2variable nllLognormal (const double x, const df1b2variable &mu, const df1b2variable &sigma)
df1b2variable nllLognormal (const df1b2variable &x, const df1b2variable &mu, const double sigma)
df1b2variable nllLognormal (const df1b2variable &x, const double mu, const df1b2variable &sigma)
df1b2variable nllLognormal (const df1b2variable &x, const df1b2variable &mu, const df1b2variable &sigma)
dvariable nllLognormal (const dvar_vector &x, const double mu, const double sigma)
 nll for lognormal for many samples $ 0.5n\ln(2 \pi) + \sum\ln(x) +n\ln(\sigma) + 0.5\sum(\frac{\ln(x)-\mu}{\sigma})^2 $
dvariable nllLognormal (const dvector &x, const dvariable &mu, const dvariable &sigma)
dvariable nllLognormal (const dvar_vector &x, const dvariable &mu, const dvariable &sigma)
df1b2variable nllLognormal (const df1b2vector &x, const double mu, const double sigma)
 nll for lognormal for many samples for random effect $ 0.5n\ln(2 \pi) + \sum\ln(x) +n\ln(\sigma) + 0.5\sum(\frac{\ln(x)-\mu}{\sigma})^2 $
df1b2variable nllLognormal (const dvector &x, const df1b2variable &mu, const df1b2variable &sigma)
df1b2variable nllLognormal (const df1b2vector &x, const df1b2variable &mu, const df1b2variable &sigma)
dvariable nllLognormal (const dvar_vector &x, const dvector &mu, const double sigma)
 nll for lognormal for many samples, each has its mean $ 0.5n\ln(2 \pi) + \sum\ln(x_{i}) +n\ln(\sigma) + 0.5\sum(\frac{\ln(x_{i})-\mu_{i}}{\sigma})^2 $
dvariable nllLognormal (const dvector &x, const dvar_vector &mu, const dvariable &sigma)
dvariable nllLognormal (const dvar_vector &x, const dvar_vector &mu, const dvariable &sigma)
df1b2variable nllLognormal (const df1b2vector &x, const dvector &mu, const double sigma)
 nll for lognormal for many samples, each has its mean, for random effect $ 0.5n\ln(2 \pi) + \sum\ln(x_{i}) +n\ln(\sigma) + 0.5\sum(\frac{\ln(x_{i})-\mu_{i}}{\sigma})^2 $
df1b2variable nllLognormal (const dvector &x, const df1b2vector &mu, const df1b2variable &sigma)
df1b2variable nllLognormal (const df1b2vector &x, const df1b2vector &mu, const df1b2variable &sigma)
dvariable nllLognormal2 (const double x, const dvariable &mu, const dvariable &tau)
 nll for lognormal(mu,tau) for one sample $ 0.5\ln(2 \pi) + \ln(x) -0.5\ln(\tau) + 0.5\tau(\ln(x)-\mu)^2 $
dvariable nllLognormal2 (const dvariable &x, const double mu, const double tau)
dvariable nllLognormal2 (const dvariable &x, const dvariable &mu, const dvariable &tau)
df1b2variable nllLognormal2 (const df1b2variable x, const double mu, const double tau)
 nll for lognormal(mu,tau) for one sample for random effect $ 0.5\ln(2 \pi) + \ln(x) -0.5\ln(\tau) + 0.5\tau(\ln(x)-\mu)^2 $
df1b2variable nllLognormal2 (const double x, const df1b2variable &mu, const df1b2variable &tau)
df1b2variable nllLognormal2 (const df1b2variable x, const df1b2variable &mu, const double tau)
df1b2variable nllLognormal2 (const df1b2variable x, const double mu, const df1b2variable &tau)
df1b2variable nllLognormal2 (const df1b2variable x, const df1b2variable &mu, const df1b2variable &tau)
dvariable nllLognormal2 (const dvar_vector &x, const double mu, const double tau)
 nll for lognormal(mu,tau) for many samples $ 0.5n\ln(2 \pi) + \sum\ln(x) -0.5n\ln(\tau) + 0.5\tau\sum(\ln(x)-\mu)^2 $
dvariable nllLognormal2 (const dvector &x, const dvariable &mu, const dvariable &tau)
dvariable nllLognormal2 (const dvar_vector &x, const dvariable &mu, const dvariable &tau)
df1b2variable nllLognormal2 (const dvector &x, const df1b2variable &mu, const df1b2variable &tau)
 nll for lognormal(mu,tau) for many samples for random effect $ 0.5n\ln(2 \pi) + \sum\ln(x) -0.5n\ln(\tau) + 0.5\tau\sum(\ln(x)-\mu)^2 $
df1b2variable nllLognormal2 (const df1b2vector &x, const double mu, const double tau)
df1b2variable nllLognormal2 (const df1b2vector &x, const df1b2variable &mu, const double tau)
df1b2variable nllLognormal2 (const df1b2vector &x, const double mu, const df1b2variable &tau)
df1b2variable nllLognormal2 (const df1b2vector &x, const df1b2variable &mu, const df1b2variable &tau)
dvariable nllLognormal2 (const dvar_vector &x, const dvector &mu, const double tau)
 nll for lognormal(mu,tau) for many samples, each has its mean $ 0.5n\ln(2 \pi) + \sum\ln(x_{i}) -0.5n\ln(\tau) + 0.5\tau\sum(\ln(x_{i})-\mu_{i})^2 $
dvariable nllLognormal2 (const dvector &x, const dvar_vector &mu, const dvariable &tau)
dvariable nllLognormal2 (const dvar_vector &x, const dvar_vector &mu, const dvariable &tau)
df1b2variable nllLognormal2 (const df1b2vector &x, const dvector &mu, const double tau)
 nll for lognormal(mu,tau) for many samples, each has its mean, overload for random effect, $ 0.5n\ln(2 \pi) + \sum\ln(x_{i}) -0.5n\ln(\tau) + 0.5\tau\sum(\ln(x_{i})-\mu_{i})^2 $
df1b2variable nllLognormal2 (const dvector &x, const df1b2vector &mu, const df1b2variable &tau)
df1b2variable nllLognormal2 (const df1b2vector &x, const df1b2vector &mu, const df1b2variable &tau)
double nllMultiNomial (const dvector &obsN, const dvector &p)
 nll for Multinomial for one sample $ -\sum_{i}(n_{i}\ln(p_{i})) -\ln((\sum_{i}n_{i})!) +\sum_{i}(\ln(n_{i}!)) $
dvariable nllMultiNomial (const dvector &obsN, const dvar_vector &p)
dvariable nllMultiNomial (const dvar_vector &obsN, const dvector &p)
dvariable nllMultiNomial (const dvar_vector &obsN, const dvar_vector &p)
df1b2variable nllMultiNomial (const df1b2vector &obsN, const dvector &p)
 nll for Multinomial for one sample for random effect $ -\sum_{i}(n_{i}\ln(p_{i})) -\ln((\sum_{i}n_{i})!) +\sum_{i}(\ln(n_{i}!)) $
df1b2variable nllMultiNomial (const dvector &obsN, const df1b2vector &p)
df1b2variable nllMultiNomial (const df1b2vector &obsN, const df1b2vector &p)
double nllNegativeBinomial (const double obs, const double m, const double s)
 nll for negative binomial N(m,s) for one sample, admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
dvariable nllNegativeBinomial (const dvariable &obs, const double m, const double s)
dvariable nllNegativeBinomial (const double obs, const dvariable &m, const dvariable &s)
dvariable nllNegativeBinomial (const dvariable &obs, const dvariable &m, const double s)
dvariable nllNegativeBinomial (const dvariable &obs, const double m, const dvariable &s)
dvariable nllNegativeBinomial (const dvariable &obs, const dvariable &m, const dvariable &s)
df1b2variable nllNegativeBinomial (const df1b2variable &obs, const double m, const double s)
 nll for negative binomial N(m,s) for one sample,overload for random effect, admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
df1b2variable nllNegativeBinomial (const double obs, const df1b2variable &m, const df1b2variable &s)
df1b2variable nllNegativeBinomial (const df1b2variable &obs, const df1b2variable &m, const double s)
df1b2variable nllNegativeBinomial (const df1b2variable &obs, const double m, const df1b2variable &s)
df1b2variable nllNegativeBinomial (const df1b2variable &obs, const df1b2variable &m, const df1b2variable &s)
dvariable nllNegativeBinomial (const dvector &obs, const dvariable &m, const dvariable &s)
 nll for negative binomial N(m,s) for many samples, admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
dvariable nllNegativeBinomial (const dvar_vector &obs, const double m, const double s)
dvariable nllNegativeBinomial (const dvar_vector &obs, const dvariable &m, const dvariable &s)
df1b2variable nllNegativeBinomial (const df1b2vector &obs, const double m, const double s)
 nll for negative binomial N(m,s) for many samples, overload for random effect, admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
df1b2variable nllNegativeBinomial (const dvector &obs, const df1b2variable &m, const df1b2variable &s)
df1b2variable nllNegativeBinomial (const df1b2vector &obs, const df1b2variable &m, const df1b2variable &s)
double nllNegativeBinomial2 (const double obs, const double m, const double tau)
 nll for negative binomial N(mu,tau) for one sample, admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
dvariable nllNegativeBinomial2 (const double obs, const dvariable &m, const dvariable &tau)
dvariable nllNegativeBinomial2 (const dvariable &obs, const double m, const double tau)
dvariable nllNegativeBinomial2 (const dvariable &obs, const dvariable &m, const double tau)
dvariable nllNegativeBinomial2 (const dvariable &obs, const double m, const dvariable &tau)
dvariable nllNegativeBinomial2 (const dvariable &obs, const dvariable &m, const dvariable &tau)
df1b2variable nllNegativeBinomial2 (const df1b2variable &obs, const double m, const double tau)
 nll for negative binomial N(mu,tau) for one sample,overload for random effect admb built in log_negbinomial_density(obs,mu,tau), in which tau=1.
df1b2variable nllNegativeBinomial2 (const double obs, const df1b2variable &m, const df1b2variable &tau)
df1b2variable nllNegativeBinomial2 (const df1b2variable &obs, const df1b2variable &m, const df1b2variable &tau)
double nllNormal (const double x, const double mu, const double sigma)
 nll for normal for one sample $ 0.5\ln(2 \pi) + \ln(\sigma) + 0.5(\frac{x-\mu}{\sigma})^2 $
dvariable nllNormal (const dvariable &x, const double mu, const double sigma)
dvariable nllNormal (const double x, const dvariable &mu, const dvariable &sigma)
dvariable nllNormal (const dvariable &x, const dvariable &mu, const double sigma)
dvariable nllNormal (const dvariable &x, const double mu, const dvariable &sigma)
dvariable nllNormal (const dvariable &x, const dvariable &mu, const dvariable &sigma)
df1b2variable nllNormal (const df1b2variable &x, const double mu, const double sigma)
 nll for normal for one sample for random effect $ 0.5\ln(2 \pi) + \ln(\sigma) + 0.5(\frac{x-\mu}{\sigma})^2 $
df1b2variable nllNormal (const df1b2variable &x, const df1b2variable &mu, const double sigma)
df1b2variable nllNormal (const df1b2variable &x, const double mu, const df1b2variable &sigma)
df1b2variable nllNormal (const double x, const df1b2variable &mu, const df1b2variable &sigma)
df1b2variable nllNormal (const df1b2variable &x, const df1b2variable &mu, const df1b2variable &sigma)
double nllNormal (const dvector &x, const double mu, const double sigma)
 nll for normal for many samples, but mu is for common $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\sum(\frac{x-\mu}{\sigma})^2 $
dvariable nllNormal (const dvar_vector &x, const double mu, const double sigma)
dvariable nllNormal (const dvector &x, const dvariable &mu, const dvariable &sigma)
dvariable nllNormal (const dvar_vector &x, const dvariable &mu, const dvariable &sigma)
df1b2variable nllNormal (const df1b2vector &x, const double mu, const double sigma)
 nll for normal for many samples, but mu is for common, overload for random effect $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\sum(\frac{x-\mu}{\sigma})^2 $
df1b2variable nllNormal (const dvector &x, const df1b2variable &mu, const df1b2variable &sigma)
df1b2variable nllNormal (const df1b2vector &x, const df1b2variable &mu, const df1b2variable &sigma)
dvariable nllNormal (const dvar_vector &x, const dvector &mu, const double sigma)
 nll for normal for many samples, each has its own mean $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\sum(\frac{x_{i}-\mu_{i}}{\sigma})^2 $
dvariable nllNormal (const dvector &x, const dvar_vector &mu, const dvariable &sigma)
dvariable nllNormal (const dvar_vector &x, const dvar_vector &mu, const dvariable &sigma)
df1b2variable nllNormal (const df1b2vector &x, const dvector &mu, const double sigma)
 nll for normal for many samples, each has its own mean for random effect $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\sum(\frac{x_{i}-\mu_{i}}{\sigma})^2 $
df1b2variable nllNormal (const dvector &x, const df1b2vector &mu, const df1b2variable &sigma)
df1b2variable nllNormal (const df1b2vector &x, const df1b2vector &mu, const df1b2variable &sigma)
dvariable nllNormal2 (const dvariable &x, const double mu, const double tau)
 nll for normal(mu,tau) for one sample $ 0.5\ln(2 \pi) -0.5 \ln(\tau) + 0.5\tau(x-\mu)^2 $
dvariable nllNormal2 (const double x, const dvariable &mu, const dvariable &tau)
dvariable nllNormal2 (const dvariable &x, const dvariable &mu, const dvariable &tau)
df1b2variable nllNormal2 (const df1b2variable &x, const double mu, const double tau)
 nll for normal(mu,tau) for one sample for random effect $ 0.5\ln(2 \pi) -0.5 \ln(\tau) + 0.5\tau(x-\mu)^2 $
df1b2variable nllNormal2 (const double x, const df1b2variable &mu, const df1b2variable &tau)
df1b2variable nllNormal2 (const df1b2variable &x, const df1b2variable &mu, const df1b2variable &tau)
dvariable nllNormal2 (const dvar_vector &x, const double mu, const double tau)
 nll for normal(mu,tau) for many samples $ 0.5n\ln(2 \pi) -0.5n\ln(\tau) + 0.5\tau\sum(x-\mu)^2 $
dvariable nllNormal2 (const dvector &x, const dvariable &mu, const dvariable &tau)
dvariable nllNormal2 (const dvar_vector &x, const dvariable &mu, const dvariable &tau)
df1b2variable nllNormal2 (const df1b2vector &x, const double mu, const double tau)
 nll for normal(mu,tau) for many samples for random effect $ 0.5n\ln(2 \pi) -0.5n\ln(\tau) + 0.5\tau\sum(x-\mu)^2 $
df1b2variable nllNormal2 (const dvector &x, const df1b2variable &mu, const df1b2variable &tau)
df1b2variable nllNormal2 (const df1b2vector &x, const df1b2variable &mu, const df1b2variable &tau)
dvariable nllNormal2 (const dvar_vector &x, const dvector &mu, const double tau)
 nll for normal(mu,tau) for many samples, each has its own mean $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\tau\sum(x_{i}-\mu_{i})^2 $
dvariable nllNormal2 (const dvector &x, const dvar_vector &mu, const dvariable &tau)
dvariable nllNormal2 (const dvar_vector &x, const dvar_vector &mu, const dvariable &tau)
df1b2variable nllNormal2 (const df1b2vector &x, const dvector &mu, const double tau)
 nll for normal(mu,tau) for many samples, each has its own mean, overload for random effect, $ 0.5n\ln(2 \pi) + n\ln(\sigma) + 0.5\tau\sum(x_{i}-\mu_{i})^2 $
df1b2variable nllNormal2 (const dvector &x, const df1b2vector &mu, const df1b2variable &tau)
df1b2variable nllNormal2 (const df1b2vector &x, const df1b2vector &mu, const df1b2variable &tau)
double nllPoisson (const double x, const double lambda)
 nll for poisson for one sample $ \lambda -x\ln(\lambda)+\ln(x!) $
dvariable nllPoisson (const dvariable &x, const double lambda)
dvariable nllPoisson (const double x, const dvariable &lambda)
dvariable nllPoisson (const dvariable &x, const dvariable &lambda)
df1b2variable nllPoisson (const df1b2variable &x, const double lambda)
 nll for poisson for one sample for random effect $ \lambda -x\ln(\lambda)+\ln(x!) $
df1b2variable nllPoisson (const double x, const df1b2variable &lambda)
df1b2variable nllPoisson (const df1b2variable &x, const df1b2variable &lambda)
dvariable nllPoisson (const dvar_vector &x, const double lambda)
 nll for poisson for many samples $ n\lambda -\sum(x)\ln(\lambda)+\sum(\ln(x!)) $
dvariable nllPoisson (const dvector &x, const dvariable &lambda)
dvariable nllPoisson (const dvar_vector &x, const dvariable &lambda)
df1b2variable nllPoisson (const dvector &x, const df1b2variable &lambda)
 nll for poisson for many samples for random effect $ n\lambda -\sum(x)\ln(\lambda)+\sum(\ln(x!)) $
df1b2variable nllPoisson (const df1b2vector &x, const double lambda)
df1b2variable nllPoisson (const df1b2vector &x, const df1b2variable &lambda)
dvar_vector normalize_p (dvar_vector &p, dvariable fpen)
 normailize p as sum(p)=1, return p and penalty if sum(p)!=1
df1b2vector normalize_p (df1b2vector &p, df1b2variable fpen)
dvar_vector posfun (dvar_vector &x, const dvector &eps, dvariable &pen)
 overloading functions for posfun for vector and matrix, not sure if admb already do this in latest version
df1b2vector posfun (df1b2vector &x, const dvector &eps, df1b2variable &pen)
dvar_matrix posfun (dvar_matrix &x, const dmatrix &eps, dvariable &pen)
 overloading functions for posfun for vector and matrix, not sure if admb already do this in latest version
overloading function for matrix
df1b2matrix posfun (df1b2matrix &x, const dmatrix &eps, df1b2variable &pen)

Detailed Description

negative log likelihood functions with other functions useful for model estimation

Date:
7/28/2011
Author:
Weihai Liu

Following user defined functions are more useful for doing estimation model in admb, the easy way to use these functions is with your tpl file under the GLOBALS_SECTION , add a line on top as #include "qfclib.h", there is a testfunction.tpl file within this folder show how to use these functions.

================ brief list for usage ============================

  1. want to constrain the vector of probability sum as 1 and each as (0,1), see logitProp() and its inverse invLogitProp()
  2. overloaded posfun(), boundp() for vector and matrix
  3. constrain parameter within some upper bound only, see mf_upper_bound2(), constrain the sum as 1 use normalize_p() with penalty
  4. nll(neg. log. likelihood) for inverse gamma, see nllInverseGamma()
  5. nll for multinomial, binomial and possion, see nllBinomial(), nllMultiNomial(), nllPoisson()
  6. nll for dirichlet, see nllDirichlet()
  7. nll for gamma and beta, see nllGamma(), nllBeta()
  8. nll for negative binomial N(m,s) with its tau version, see nllNegativeBinomial(), nllNegativeBinomial2()
  9. nll for normal N(m,sigma) and its tau version N(m,tau), see nllNormal(), nllNormal2()
  10. nll for lognormal LN(m,sigma0 and its tau version LN(m,tau), see nllLognormal(), nllLognormal2()
    =============================================================

found any bug , contact Weihai Liu at liuwe.nosp@m.ih@m.nosp@m.su.ed.nosp@m.u
Quantitative Fisheries Center(QFC), Michigan State University

Definition in file qfc_est.cpp.


Function Documentation

df1b2vector boundp ( const df1b2vector x,
const double  fmin,
const double  fmax,
const df1b2variable fpen 
)

Definition at line 245 of file qfc_est.cpp.

Definition at line 88 of file qfc_est.cpp.

df1b2vector log_comb ( const df1b2vector n,
const dvector x 
)

Definition at line 273 of file qfc_est.cpp.

df1b2vector log_comb ( const dvector n,
const df1b2vector x 
)

Definition at line 280 of file qfc_est.cpp.

Definition at line 57 of file qfc_est.cpp.

df1b2variable mf_upper_bound2 ( const df1b2variable x,
const double  fmax,
df1b2variable fpen 
)

Definition at line 215 of file qfc_est.cpp.

dvariable nllBeta ( const dvariable x,
const double  a,
const double  b 
)

Definition at line 886 of file qfc_est.cpp.

dvariable nllBeta ( const double  x,
const dvariable a,
const dvariable b 
)

Definition at line 894 of file qfc_est.cpp.

dvariable nllBeta ( const dvariable x,
const dvariable a,
const double  b 
)

Definition at line 902 of file qfc_est.cpp.

dvariable nllBeta ( const dvariable x,
const double  a,
const dvariable b 
)

Definition at line 910 of file qfc_est.cpp.

dvariable nllBeta ( const dvariable x,
const dvariable a,
const dvariable b 
)

Definition at line 918 of file qfc_est.cpp.

df1b2variable nllBeta ( const df1b2variable x,
const df1b2variable a,
const double  b 
)

Definition at line 941 of file qfc_est.cpp.

df1b2variable nllBeta ( const df1b2variable x,
const double  a,
const df1b2variable b 
)

Definition at line 947 of file qfc_est.cpp.

df1b2variable nllBeta ( const double  x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 953 of file qfc_est.cpp.

df1b2variable nllBeta ( const df1b2variable x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 959 of file qfc_est.cpp.

dvariable nllBeta ( const dvector x,
const dvariable a,
const dvariable b 
)

Definition at line 985 of file qfc_est.cpp.

dvariable nllBeta ( const dvar_vector x,
const dvariable a,
const dvariable b 
)

Definition at line 994 of file qfc_est.cpp.

df1b2variable nllBeta ( const dvector x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 1019 of file qfc_est.cpp.

df1b2variable nllBeta ( const df1b2vector x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 1026 of file qfc_est.cpp.

dvariable nllBinomial ( const dvariable x,
const double  n,
const double  p 
)

Definition at line 1514 of file qfc_est.cpp.

dvariable nllBinomial ( const double  x,
const dvariable n,
const dvariable p 
)

Definition at line 1522 of file qfc_est.cpp.

dvariable nllBinomial ( const dvariable x,
const dvariable n,
const dvariable p 
)

Definition at line 1530 of file qfc_est.cpp.

df1b2variable nllBinomial ( const double  x,
const df1b2variable n,
const df1b2variable p 
)

Definition at line 1553 of file qfc_est.cpp.

df1b2variable nllBinomial ( const df1b2variable x,
const df1b2variable n,
const df1b2variable p 
)

Definition at line 1559 of file qfc_est.cpp.

dvariable nllBinomial ( const dvector x,
const dvar_vector n,
const dvariable p 
)

Definition at line 1585 of file qfc_est.cpp.

dvariable nllBinomial ( const dvar_vector x,
const dvar_vector n,
const dvariable p 
)

Definition at line 1593 of file qfc_est.cpp.

df1b2variable nllBinomial ( const df1b2vector x,
const dvector n,
const double  p 
)

Definition at line 1616 of file qfc_est.cpp.

df1b2variable nllBinomial ( const df1b2vector x,
const df1b2vector n,
const df1b2variable p 
)

Definition at line 1622 of file qfc_est.cpp.

dvariable nllDirichlet ( const dvar_vector p,
const dvector shape 
)

Definition at line 634 of file qfc_est.cpp.

dvariable nllDirichlet ( const dvector p,
const dvar_vector shape 
)

Definition at line 642 of file qfc_est.cpp.

dvariable nllDirichlet ( const dvar_vector p,
const dvar_vector shape 
)

Definition at line 650 of file qfc_est.cpp.

df1b2variable nllDirichlet ( const dvector p,
const df1b2vector shape 
)

Definition at line 672 of file qfc_est.cpp.

df1b2variable nllDirichlet ( const df1b2vector p,
const df1b2vector shape 
)

Definition at line 678 of file qfc_est.cpp.

dvariable nllGamma ( const dvariable x,
const double  a,
const double  b 
)

Definition at line 707 of file qfc_est.cpp.

dvariable nllGamma ( const double  x,
const dvariable a,
const dvariable b 
)

Definition at line 715 of file qfc_est.cpp.

dvariable nllGamma ( const dvariable x,
const dvariable a,
const double  b 
)

Definition at line 723 of file qfc_est.cpp.

dvariable nllGamma ( const dvariable x,
const double  a,
const dvariable b 
)

Definition at line 731 of file qfc_est.cpp.

dvariable nllGamma ( const dvariable x,
const dvariable a,
const dvariable b 
)

Definition at line 739 of file qfc_est.cpp.

df1b2variable nllGamma ( const double  x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 763 of file qfc_est.cpp.

df1b2variable nllGamma ( const df1b2variable x,
const df1b2variable a,
const double  b 
)

Definition at line 769 of file qfc_est.cpp.

df1b2variable nllGamma ( const df1b2variable x,
const double  a,
const df1b2variable b 
)

Definition at line 775 of file qfc_est.cpp.

df1b2variable nllGamma ( const df1b2variable x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 781 of file qfc_est.cpp.

dvariable nllGamma ( const dvar_vector x,
const double  a,
const double  b 
)

Definition at line 805 of file qfc_est.cpp.

dvariable nllGamma ( const dvector x,
const dvariable a,
const dvariable b 
)

Definition at line 814 of file qfc_est.cpp.

dvariable nllGamma ( const dvar_vector x,
const dvariable a,
const dvariable b 
)

Definition at line 823 of file qfc_est.cpp.

df1b2variable nllGamma ( const dvector x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 848 of file qfc_est.cpp.

df1b2variable nllGamma ( const df1b2vector x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 855 of file qfc_est.cpp.

dvariable nllInverseGamma ( const dvariable x,
const double  a,
const double  b 
)

Definition at line 2275 of file qfc_est.cpp.

dvariable nllInverseGamma ( const double  x,
const dvariable a,
const dvariable b 
)

Definition at line 2283 of file qfc_est.cpp.

dvariable nllInverseGamma ( const dvariable x,
const dvariable a,
const dvariable b 
)

Definition at line 2291 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const double  x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 2314 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const df1b2variable x,
const df1b2variable a,
const double  b 
)

Definition at line 2320 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const df1b2variable x,
const double  a,
const df1b2variable b 
)

Definition at line 2326 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const df1b2variable x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 2332 of file qfc_est.cpp.

dvariable nllInverseGamma ( const dvector x,
const dvariable a,
const dvariable b 
)

Definition at line 2359 of file qfc_est.cpp.

dvariable nllInverseGamma ( const dvar_vector x,
const dvariable a,
const dvariable b 
)

Definition at line 2368 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const df1b2vector x,
const double  a,
const double  b 
)

Definition at line 2393 of file qfc_est.cpp.

df1b2variable nllInverseGamma ( const df1b2vector x,
const df1b2variable a,
const df1b2variable b 
)

Definition at line 2400 of file qfc_est.cpp.

dvariable nllLognormal ( const dvariable x,
const double  mu,
const double  sigma 
)

Definition at line 1656 of file qfc_est.cpp.

dvariable nllLognormal ( const double  x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1664 of file qfc_est.cpp.

dvariable nllLognormal ( const dvariable x,
const dvariable mu,
const double  sigma 
)

Definition at line 1672 of file qfc_est.cpp.

dvariable nllLognormal ( const dvariable x,
const double  mu,
const dvariable sigma 
)

Definition at line 1680 of file qfc_est.cpp.

dvariable nllLognormal ( const dvariable x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1688 of file qfc_est.cpp.

df1b2variable nllLognormal ( const double  x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1711 of file qfc_est.cpp.

df1b2variable nllLognormal ( const df1b2variable x,
const df1b2variable mu,
const double  sigma 
)

Definition at line 1717 of file qfc_est.cpp.

df1b2variable nllLognormal ( const df1b2variable x,
const double  mu,
const df1b2variable sigma 
)

Definition at line 1723 of file qfc_est.cpp.

df1b2variable nllLognormal ( const df1b2variable x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1729 of file qfc_est.cpp.

dvariable nllLognormal ( const dvector x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1756 of file qfc_est.cpp.

dvariable nllLognormal ( const dvar_vector x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1765 of file qfc_est.cpp.

df1b2variable nllLognormal ( const dvector x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1790 of file qfc_est.cpp.

df1b2variable nllLognormal ( const df1b2vector x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1797 of file qfc_est.cpp.

dvariable nllLognormal ( const dvector x,
const dvar_vector mu,
const dvariable sigma 
)

Definition at line 1824 of file qfc_est.cpp.

dvariable nllLognormal ( const dvar_vector x,
const dvar_vector mu,
const dvariable sigma 
)

Definition at line 1833 of file qfc_est.cpp.

df1b2variable nllLognormal ( const dvector x,
const df1b2vector mu,
const df1b2variable sigma 
)

Definition at line 1858 of file qfc_est.cpp.

df1b2variable nllLognormal ( const df1b2vector x,
const df1b2vector mu,
const df1b2variable sigma 
)

Definition at line 1865 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvariable x,
const double  mu,
const double  tau 
)

Definition at line 1900 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvariable x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1908 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const double  x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1931 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2variable  x,
const df1b2variable mu,
const double  tau 
)

Definition at line 1937 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2variable  x,
const double  mu,
const df1b2variable tau 
)

Definition at line 1943 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2variable  x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1949 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvector x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1976 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvar_vector x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1985 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2vector x,
const double  mu,
const double  tau 
)

Definition at line 2010 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2vector x,
const df1b2variable mu,
const double  tau 
)

Definition at line 2017 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2vector x,
const double  mu,
const df1b2variable tau 
)

Definition at line 2024 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2vector x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 2031 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvector x,
const dvar_vector mu,
const dvariable tau 
)

Definition at line 2059 of file qfc_est.cpp.

dvariable nllLognormal2 ( const dvar_vector x,
const dvar_vector mu,
const dvariable tau 
)

Definition at line 2068 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const dvector x,
const df1b2vector mu,
const df1b2variable tau 
)

Definition at line 2093 of file qfc_est.cpp.

df1b2variable nllLognormal2 ( const df1b2vector x,
const df1b2vector mu,
const df1b2variable tau 
)

Definition at line 2100 of file qfc_est.cpp.

dvariable nllMultiNomial ( const dvector obsN,
const dvar_vector p 
)

Definition at line 561 of file qfc_est.cpp.

dvariable nllMultiNomial ( const dvar_vector obsN,
const dvector p 
)

Definition at line 569 of file qfc_est.cpp.

dvariable nllMultiNomial ( const dvar_vector obsN,
const dvar_vector p 
)

Definition at line 577 of file qfc_est.cpp.

df1b2variable nllMultiNomial ( const dvector obsN,
const df1b2vector p 
)

Definition at line 599 of file qfc_est.cpp.

df1b2variable nllMultiNomial ( const df1b2vector obsN,
const df1b2vector p 
)

Definition at line 605 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvariable obs,
const double  m,
const double  s 
)

Definition at line 316 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const double  obs,
const dvariable m,
const dvariable s 
)

Definition at line 324 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvariable obs,
const dvariable m,
const double  s 
)

Definition at line 332 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvariable obs,
const double  m,
const dvariable s 
)

Definition at line 340 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvariable obs,
const dvariable m,
const dvariable s 
)

Definition at line 348 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const double  obs,
const df1b2variable m,
const df1b2variable s 
)

Definition at line 373 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const df1b2variable obs,
const df1b2variable m,
const double  s 
)

Definition at line 379 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const df1b2variable obs,
const double  m,
const df1b2variable s 
)

Definition at line 385 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const df1b2variable obs,
const df1b2variable m,
const df1b2variable s 
)

Definition at line 391 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvar_vector obs,
const double  m,
const double  s 
)

Definition at line 421 of file qfc_est.cpp.

dvariable nllNegativeBinomial ( const dvar_vector obs,
const dvariable m,
const dvariable s 
)

Definition at line 430 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const dvector obs,
const df1b2variable m,
const df1b2variable s 
)

Definition at line 457 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial ( const df1b2vector obs,
const df1b2variable m,
const df1b2variable s 
)

Definition at line 464 of file qfc_est.cpp.

dvariable nllNegativeBinomial2 ( const double  obs,
const dvariable m,
const dvariable tau 
)

Definition at line 494 of file qfc_est.cpp.

dvariable nllNegativeBinomial2 ( const dvariable obs,
const double  m,
const double  tau 
)

Definition at line 498 of file qfc_est.cpp.

dvariable nllNegativeBinomial2 ( const dvariable obs,
const dvariable m,
const double  tau 
)

Definition at line 502 of file qfc_est.cpp.

dvariable nllNegativeBinomial2 ( const dvariable obs,
const double  m,
const dvariable tau 
)

Definition at line 506 of file qfc_est.cpp.

dvariable nllNegativeBinomial2 ( const dvariable obs,
const dvariable m,
const dvariable tau 
)

Definition at line 510 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial2 ( const double  obs,
const df1b2variable m,
const df1b2variable tau 
)

Definition at line 528 of file qfc_est.cpp.

df1b2variable nllNegativeBinomial2 ( const df1b2variable obs,
const df1b2variable m,
const df1b2variable tau 
)

Definition at line 532 of file qfc_est.cpp.

dvariable nllNormal ( const dvariable x,
const double  mu,
const double  sigma 
)

Definition at line 1057 of file qfc_est.cpp.

dvariable nllNormal ( const double  x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1065 of file qfc_est.cpp.

dvariable nllNormal ( const dvariable x,
const dvariable mu,
const double  sigma 
)

Definition at line 1073 of file qfc_est.cpp.

dvariable nllNormal ( const dvariable x,
const double  mu,
const dvariable sigma 
)

Definition at line 1081 of file qfc_est.cpp.

dvariable nllNormal ( const dvariable x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1089 of file qfc_est.cpp.

df1b2variable nllNormal ( const df1b2variable x,
const df1b2variable mu,
const double  sigma 
)

Definition at line 1112 of file qfc_est.cpp.

df1b2variable nllNormal ( const df1b2variable x,
const double  mu,
const df1b2variable sigma 
)

Definition at line 1118 of file qfc_est.cpp.

df1b2variable nllNormal ( const double  x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1124 of file qfc_est.cpp.

df1b2variable nllNormal ( const df1b2variable x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1130 of file qfc_est.cpp.

dvariable nllNormal ( const dvar_vector x,
const double  mu,
const double  sigma 
)

Definition at line 1154 of file qfc_est.cpp.

dvariable nllNormal ( const dvector x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1163 of file qfc_est.cpp.

dvariable nllNormal ( const dvar_vector x,
const dvariable mu,
const dvariable sigma 
)

Definition at line 1172 of file qfc_est.cpp.

df1b2variable nllNormal ( const dvector x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1197 of file qfc_est.cpp.

df1b2variable nllNormal ( const df1b2vector x,
const df1b2variable mu,
const df1b2variable sigma 
)

Definition at line 1204 of file qfc_est.cpp.

dvariable nllNormal ( const dvector x,
const dvar_vector mu,
const dvariable sigma 
)

Definition at line 1231 of file qfc_est.cpp.

dvariable nllNormal ( const dvar_vector x,
const dvar_vector mu,
const dvariable sigma 
)

Definition at line 1240 of file qfc_est.cpp.

df1b2variable nllNormal ( const dvector x,
const df1b2vector mu,
const df1b2variable sigma 
)

Definition at line 1265 of file qfc_est.cpp.

df1b2variable nllNormal ( const df1b2vector x,
const df1b2vector mu,
const df1b2variable sigma 
)

Definition at line 1272 of file qfc_est.cpp.

dvariable nllNormal2 ( const double  x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1307 of file qfc_est.cpp.

dvariable nllNormal2 ( const dvariable x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1315 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const double  x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1338 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const df1b2variable x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1344 of file qfc_est.cpp.

dvariable nllNormal2 ( const dvector x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1371 of file qfc_est.cpp.

dvariable nllNormal2 ( const dvar_vector x,
const dvariable mu,
const dvariable tau 
)

Definition at line 1380 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const dvector x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1405 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const df1b2vector x,
const df1b2variable mu,
const df1b2variable tau 
)

Definition at line 1412 of file qfc_est.cpp.

dvariable nllNormal2 ( const dvector x,
const dvar_vector mu,
const dvariable tau 
)

Definition at line 1439 of file qfc_est.cpp.

dvariable nllNormal2 ( const dvar_vector x,
const dvar_vector mu,
const dvariable tau 
)

Definition at line 1448 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const dvector x,
const df1b2vector mu,
const df1b2variable tau 
)

Definition at line 1473 of file qfc_est.cpp.

df1b2variable nllNormal2 ( const df1b2vector x,
const df1b2vector mu,
const df1b2variable tau 
)

Definition at line 1480 of file qfc_est.cpp.

dvariable nllPoisson ( const dvariable x,
const double  lambda 
)

Definition at line 2133 of file qfc_est.cpp.

dvariable nllPoisson ( const double  x,
const dvariable lambda 
)

Definition at line 2141 of file qfc_est.cpp.

dvariable nllPoisson ( const dvariable x,
const dvariable lambda 
)

Definition at line 2149 of file qfc_est.cpp.

df1b2variable nllPoisson ( const double  x,
const df1b2variable lambda 
)

Definition at line 2171 of file qfc_est.cpp.

df1b2variable nllPoisson ( const df1b2variable x,
const df1b2variable lambda 
)

Definition at line 2177 of file qfc_est.cpp.

dvariable nllPoisson ( const dvector x,
const dvariable lambda 
)

Definition at line 2202 of file qfc_est.cpp.

dvariable nllPoisson ( const dvar_vector x,
const dvariable lambda 
)

Definition at line 2211 of file qfc_est.cpp.

df1b2variable nllPoisson ( const df1b2vector x,
const double  lambda 
)

Definition at line 2235 of file qfc_est.cpp.

df1b2variable nllPoisson ( const df1b2vector x,
const df1b2variable lambda 
)

Definition at line 2242 of file qfc_est.cpp.

Definition at line 117 of file qfc_est.cpp.

df1b2vector posfun ( df1b2vector x,
const dvector eps,
df1b2variable pen 
)

Definition at line 145 of file qfc_est.cpp.

df1b2matrix posfun ( df1b2matrix x,
const dmatrix eps,
df1b2variable pen 
)

Definition at line 178 of file qfc_est.cpp.