Questions tagged [tmb]

Questions relating to the R Template Model Builder package

Questions relating to the R Template Model Builder package:

https://github.com/kaskr/adcomp
https://cran.r-project.org/web/packages/TMB/index.html

32 questions
0
votes
2 answers

How do you find out names of parameters and data required by a objective function in a TMB .cpp file?

From the TMB tutorial, one defines objective functions in a .cpp file, such that parameter names and names of model data structures are shared between the C++ function and what is called from R. For example, the tutorial.cpp file: #include
Alex
  • 15,186
  • 15
  • 73
  • 127
0
votes
1 answer

What is this compilation error in the TMB tutorial?

I copied the C++ code from the TMB tutorial page #include // Links in the TMB libraries template Type objective_function::operator() () { DATA_VECTOR(x); …
Alex
  • 15,186
  • 15
  • 73
  • 127
1 2
3