* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘hesim’ ...
** package ‘hesim’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-14 (Debian 14.2.0-8) 14.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp8V4uGN/R.INSTALL7c58373f1adef/hesim/src'
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim.h:4,
                 from RcppExports.cpp:4:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c apply_rr.cpp -o apply_rr.o
apply_rr.cpp: In function ‘arma::rowvec apply_complement(arma::rowvec, int)’:
apply_rr.cpp:7:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
    7 |   for (int i = 0; i < x.size(); ++i) {
      |                   ~~^~~~~~~~~~
apply_rr.cpp: In function ‘void apply_complement(arma::mat&, arma::umat)’:
apply_rr.cpp:15:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
   15 |   for (int i = 0; i < complement.n_rows; ++i) {
      |                   ~~^~~~~~~~~~~~~~~~~~~
apply_rr.cpp: In function ‘arma::mat apply_rr(const arma::mat&, arma::rowvec, arma::umat, arma::umat)’:
apply_rr.cpp:24:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
   24 |   for (int i = 0; i < index.n_rows; ++ i) {
      |                   ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c cea.cpp -o cea.o
In file included from cea.cpp:4:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c ctstm.cpp -o ctstm.o
In file included from ../inst/include/hesim/statmods/obs_index.h:5,
                 from ../inst/include/hesim/ctstm/ctstm.h:3,
                 from ctstm.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/ctstm/ctstm.h:4:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
ctstm.cpp: In function ‘Rcpp::DataFrame C_ctstm_summary(Rcpp::Environment, std::vector<double>, std::string)’:
ctstm.cpp:39:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   39 |           for (int l = 0; l < t.size(); ++l){
      |                           ~~^~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c distributions.cpp -o distributions.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from distributions.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c dtstm.cpp -o dtstm.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/statevals.h:4,
                 from dtstm.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
In file included from ../inst/include/hesim/statevals.h:5:
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
../inst/include/hesim/statevals.h: In static member function ‘static double hesim::ev::sim_los(std::vector<double>&, std::vector<double>::iterator, double, std::string)’:
../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  411 |     for (int i = 0; i < times.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/statevals.h: In member function ‘hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector<double>, std::vector<double>, std::vector<std::__cxx11::basic_string<char> >, std::string)’:
../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<hesim::statevals>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  440 |     for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop
      |                     ~~^~~~~~~~~~~~~~~~~~~
../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  441 |       for (int j = 0; j < dr.size(); ++j){ // start discount rate loop
      |                       ~~^~~~~~~~~~~
In file included from dtstm.cpp:2:
../inst/include/hesim/dtstm.h: In member function ‘virtual arma::mat hesim::dtstm::mlogit_list::tpmatrix(int, double)’:
../inst/include/hesim/dtstm.h:160:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<hesim::statmods::mlogit>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  160 |       for (int i = 0; i < mlogit_list_.size(); ++i){
      |                       ~~^~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c indiv-ctstm.cpp -o indiv-ctstm.o
In file included from ../inst/include/hesim/statmods/obs_index.h:5,
                 from ../inst/include/hesim/ctstm/ctstm.h:3,
                 from ../inst/include/hesim/ctstm/indiv-ctstm.h:3,
                 from indiv-ctstm.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/ctstm/ctstm.h:4:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/ctstm/indiv-ctstm.h: In member function ‘bool hesim::ctstm::patient::is_reset_state()’:
../inst/include/hesim/ctstm/indiv-ctstm.h:55:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   55 |     for (int i = 0; i < reset_states_.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~
In file included from indiv-ctstm.cpp:2:
../inst/include/hesim/statevals.h: In static member function ‘static double hesim::ev::sim_los(std::vector<double>&, std::vector<double>::iterator, double, std::string)’:
../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  411 |     for (int i = 0; i < times.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/statevals.h: In member function ‘hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector<double>, std::vector<double>, std::vector<std::__cxx11::basic_string<char> >, std::string)’:
../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<hesim::statevals>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  440 |     for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop
      |                     ~~^~~~~~~~~~~~~~~~~~~
../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  441 |       for (int j = 0; j < dr.size(); ++j){ // start discount rate loop
      |                       ~~^~~~~~~~~~~
indiv-ctstm.cpp: In function ‘Rcpp::DataFrame C_ctstm_indiv_stateprobs(Rcpp::DataFrame, std::vector<double>, int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, int, int)’:
indiv-ctstm.cpp:131:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  131 |   for(int i = 0; i < disease_prog.time_start_.size(); ++i){
      |                  ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
indiv-ctstm.cpp:132:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  132 |     for(int j = 0; j < t.size(); ++j){
      |                    ~~^~~~~~~~~~
indiv-ctstm.cpp:153:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  153 |   for (int i = 0; i < out.prob_.size(); ++i){
      |                   ~~^~~~~~~~~~~~~~~~~~
indiv-ctstm.cpp:163:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  163 |           for (int r = 0; r < t.size(); ++r){
      |                           ~~^~~~~~~~~~
indiv-ctstm.cpp: In function ‘std::vector<double> C_indiv_ctstm_starting(Rcpp::DataFrame, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, Rcpp::Environment, double, std::string)’:
indiv-ctstm.cpp:318:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  318 |   for (unsigned int i = 0; i < N; ++i){
      |                            ~~^~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c psm.cpp -o psm.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/psm.h:3,
                 from psm.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
In file included from ../inst/include/hesim/psm.h:4:
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from psm.cpp:2:
../inst/include/hesim/statevals.h: In static member function ‘static double hesim::ev::sim_los(std::vector<double>&, std::vector<double>::iterator, double, std::string)’:
../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  411 |     for (int i = 0; i < times.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/statevals.h: In member function ‘hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector<double>, std::vector<double>, std::vector<std::__cxx11::basic_string<char> >, std::string)’:
../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<hesim::statevals>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  440 |     for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop
      |                     ~~^~~~~~~~~~~~~~~~~~~
../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  441 |       for (int j = 0; j < dr.size(); ++j){ // start discount rate loop
      |                       ~~^~~~~~~~~~~
psm.cpp: In function ‘Rcpp::DataFrame C_psm_curves_summary(Rcpp::Environment, std::vector<double>, std::string, double)’:
psm.cpp:233:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  233 |           for (int j = 0; j < x.size(); ++j){
      |                           ~~^~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c statevals.cpp -o statevals.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/statevals.h:4,
                 from statevals.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
In file included from ../inst/include/hesim/statevals.h:5:
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
../inst/include/hesim/statevals.h: In static member function ‘static double hesim::ev::sim_los(std::vector<double>&, std::vector<double>::iterator, double, std::string)’:
../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  411 |     for (int i = 0; i < times.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/statevals.h: In member function ‘hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector<double>, std::vector<double>, std::vector<std::__cxx11::basic_string<char> >, std::string)’:
../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<hesim::statevals>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  440 |     for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop
      |                     ~~^~~~~~~~~~~~~~~~~~~
../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  441 |       for (int j = 0; j < dr.size(); ++j){ // start discount rate loop
      |                       ~~^~~~~~~~~~~
statevals.cpp: In function ‘Rcpp::DataFrame C_statevals_sim(Rcpp::Environment, std::vector<double>, std::string)’:
statevals.cpp:40:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   40 |           for (int t = 0; t < times.size(); ++t){
      |                           ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-composite.cpp -o test-composite.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-ctstm.cpp -o test-ctstm.o
In file included from ../inst/include/hesim/statmods/obs_index.h:5,
                 from ../inst/include/hesim/ctstm/ctstm.h:3,
                 from test-ctstm.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6,
                 from ../inst/include/hesim/statmods/statmods.h:3,
                 from ../inst/include/hesim/ctstm/ctstm.h:4:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::summary(int, int, std::vector<double>, std::string, double)’:
../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  246 |     for (int i = 0; i < t.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/statmods/statmods.h: In member function ‘std::vector<double> hesim::statmods::surv::quantile(int, int, std::vector<double>)’:
../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < p.size(); ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-distributions.cpp -o test-distributions.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from test-distributions.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-obs_index.cpp -o test-obs_index.o
In file included from ../inst/include/hesim/statmods/obs_index.h:5,
                 from test-obs_index.cpp:1:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
../inst/include/hesim/statmods/obs_index.h: In member function ‘int hesim::statmods::obs_index::get_health_id()’:
../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: ‘std::vector<int, std::allocator<int> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  290 |     if (health_id_vec_.size() != n_obs_){
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-quad.cpp -o test-quad.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-riemann.cpp -o test-riemann.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-rtrunc.cpp -o test-rtrunc.o
In file included from ../inst/include/hesim/stats/distributions.h:3,
                 from test-rtrunc.cpp:3:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
In file included from ../inst/include/hesim/stats/distributions.h:6:
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
../inst/include/hesim/stats/distributions.h: In member function ‘virtual double hesim::stats::piecewise_exponential::trandom(double, double) const’:
../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  348 |       if (t == j){
      |           ~~^~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const distribution*>(const distribution*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:207:23:   required from here
  207 |     return surv_sample(dist, 0, INFINITY, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const exponential*>(const exponential*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:299:18:   required from here
  299 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull*>(const weibull*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:412:18:   required from here
  412 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_ph*>(const weibull_ph*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:473:18:   required from here
  473 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const weibull_nma*>(const weibull_nma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:534:18:   required from here
  534 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gamma*>(const gamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:588:18:   required from here
  588 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const lognormal*>(const lognormal*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:643:18:   required from here
  643 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gompertz*>(const gompertz*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:724:18:   required from here
  724 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const loglogistic*>(const loglogistic*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:780:18:   required from here
  780 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In instantiation of ‘std::vector<double> hesim::stats::cumhazard_numeric(Func, std::vector<double>, std::string) [with Func = surv_sample<const gengamma*>(const gengamma*, double, double, double)::<lambda(double)>; std::string = std::__cxx11::basic_string<char>]’:
../inst/include/hesim/stats/survfuns.h:215:52:   required from ‘double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]’
  215 |   std::vector<double> cumhazard = cumhazard_numeric(hazfun, time, dist->cumhaz_method_);
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/rtrunc.h:98:23:   required from ‘double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string<char>]’
   98 |     return surv_sample(dist, lower, upper, dist->max_x_);
      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/distributions.h:875:18:   required from here
  875 |     return rtrunc(this, lower, upper, "invcdf");
      |            ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  106 |     for (int i = 0; i < times.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-survfuns.cpp -o test-survfuns.o
In file included from ../inst/include/hesim/stats/survfuns.h:6,
                 from test-survfuns.cpp:3:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
../inst/include/hesim/stats/survfuns.h: In function ‘double hesim::stats::surv_sample(std::vector<double>&, std::vector<double>, bool)’:
../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  156 |   while(died == 0 && i < n_times){
      |                      ~~^~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-utils.cpp -o test-utils.o
In file included from test-utils.cpp:3:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c test-zeroin.cpp -o test-zeroin.o
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -pedantic -mtune=native   -c utils.cpp -o utils.o
In file included from utils.cpp:3:
../inst/include/hesim/utils.h: In member function ‘int hesim::trans_mat::count_non_nan(arma::mat)’:
../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  203 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  204 |       for (int j = 0; j < m.n_cols; ++j){
      |                       ~~^~~~~~~~~~
../inst/include/hesim/utils.h: In member function ‘std::vector<bool> hesim::trans_mat::is_absorbing(std::vector<std::vector<int, std::allocator<int> > >)’:
../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::vector<int, std::allocator<int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  220 |     for (int i = 0; i < trans.size(); ++i){
      |                     ~~^~~~~~~~~~~~~~
../inst/include/hesim/utils.h: In constructor ‘hesim::trans_mat::trans_mat(arma::mat, bool)’:
../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  252 |     for (int i = 0; i < m.n_rows; ++i){
      |                     ~~^~~~~~~~~~
../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  256 |       for (int j = 0; j < m_row.n_elem; ++j){
      |                       ~~^~~~~~~~~~~~~~
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o hesim.so RcppExports.o apply_rr.o cea.o ctstm.o distributions.o dtstm.o indiv-ctstm.o psm.o statevals.o test-composite.o test-ctstm.o test-distributions.o test-obs_index.o test-quad.o test-riemann.o test-rtrunc.o test-survfuns.o test-utils.o test-zeroin.o utils.o -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp8V4uGN/R.INSTALL7c58373f1adef/hesim/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp8V4uGN/R.INSTALL7c58373f1adef/hesim/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp8V4uGN/R.INSTALL7c58373f1adef/hesim/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-hesim/00new/hesim/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘hesim’
    finding HTML links ... done
    CohortDtstm                             html  
    CohortDtstmTrans                        html  
    CtstmTrans                              html  
    IndivCtstm                              html  
    IndivCtstmTrans                         html  
    Psm                                     html  
    PsmCurves                               html  
    StateVals                               html  
    absorbing                               html  
    apply_rr                                html  
    as.data.table.tparams_transprobs        html  
    as_array3                               html  
    as_pfs_os                               html  
    autoplot.stateprobs                     html  
    autoplot.survival                       html  
    bootstrap                               html  
    ce                                      html  
    cea                                     html  
    check                                   html  
    check_input_data                        html  
    costs                                   html  
    create_CohortDtstm                      html  
    create_CohortDtstmTrans                 html  
    create_IndivCtstmTrans                  html  
    create_PsmCurves                        html  
    create_StateVals                        html  
    create_input_mats                       html  
    create_input_mats.formula_list          html  
    create_lines_dt                         html  
    create_object_list                      html  
    create_params                           html  
    create_trans_dt                         html  
    define_model                            html  
    define_rng                              html  
    define_tparams                          html  
    disprog                                 html  
    expand                                  html  
    expand.hesim_data                       html  
    expmat                                  html  
    fast_rgengamma                          html  
    flexsurvreg_list                        html  
    formula_list                            html  
    get_labels                              html  
    hesim                                   html  
    hesim_data                              html  
    hesim_survdists                         html  
    icea                                    html  
    icer                                    html  
    icer_tbl                                html  
    id_attributes                           html  
    incr_effect                             html  
    input_mats                              html  
    lm_list                                 html  
    mom_beta                                html  
    mom_gamma                               html  
    mstate3_exdata                          html  
    multinom3_exdata                        html  
    multinom_list                           html  
    normboot                                html  
    onc3                                    html  
    onc3p                                   html  
    params                                  html  
    params_lm                               html  
    params_mlogit                           html  
    params_mlogit_list                      html  
    params_surv                             html  
    params_surv_list                        html  
    partsurvfit                             html  
    plot_ceac                               html  
    plot_ceaf                               html  
    plot_ceplane                            html  
    plot_evpi                               html  
    plugin                                  html  
    psm4_exdata                             html  
    qalys                                   html  
    qmatrix                                 html  
    qmatrix.matrix                          html  
    qmatrix.msm                             html  
    rcat                                    html  
    rdirichlet_mat                          html  
    reexports                               html  
    rng_distributions                       html  
    rpwexp                                  html  
    set_labels                              html  
    sim_ev                                  html  
    sim_stateprobs                          html  
    sim_stateprobs.survival                 html  
    stateprobs                              html  
    stateval_tbl                            html  
    summarize_ce                            html  
    summary.ce                              html  
    summary.eval_rng                        html  
    summary.params                          html  
    summary.tparams_mean                    html  
    summary.tparams_transprobs              html  
    summary.tpmatrix                        html  
    surv_quantile                           html  
    survival                                html  
    time_intervals                          html  
    tparams                                 html  
    tparams_mean                            html  
    tparams_transprobs                      html  
    tpmatrix                                html  
    tpmatrix_id                             html  
    tpmatrix_names                          html  
    uv_rng                                  html  
    weibullNMA                              html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (hesim)