4 Type objective_function<Type>::operator() ()
12 Type nll = -
sum(
dnorm(y, mu, sd,
true));
#define DATA_VECTOR(name)
Get data vector from R and declare it as vector<Type>
Includes and sets all stuff needed to compile the user defined objective function.
#define REPORT(name)
Report scalar, vector or array back to R without derivative information.
#define SIMULATE
Mark code that is only executed during simulation.
Type dnorm(Type x, Type mean, Type sd, int give_log=0)
Probability density function of the normal distribution.
#define PARAMETER(name)
Get parameter scalar from R and declare it as Type.
Type sum(Vector< Type > x)
Type rnorm(Type mu, Type sigma)
Simulate from a normal distribution.
Vector class used by TMB.