Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd53af52

Browse files
committed
removed unused rcpp::exports and added better plotting tests
1 parent7a9e7bd commitd53af52

File tree

12 files changed

+210
-3162
lines changed

12 files changed

+210
-3162
lines changed

‎R/RcppExports.R‎

Lines changed: 104 additions & 294 deletions
Large diffs are not rendered by default.

‎src/Calc_Repeated.cpp‎

Lines changed: 26 additions & 29 deletions
Large diffs are not rendered by default.

‎src/Main_Bound.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void visit_lambda(const Mat& m, const Func& f) {
7373
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
7474
//' @noRd
7575
//'
76-
// [[Rcpp::export]]
76+
//
7777
ListLogLik_Cox_PH_Omnibus_Log_Bound(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double mult) {
7878
//
7979
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -495,7 +495,7 @@ List LogLik_Cox_PH_Omnibus_Log_Bound(IntegerVector term_n, StringVector tform, N
495495
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
496496
//' @noRd
497497
//'
498-
// [[Rcpp::export]]
498+
//
499499
ListLogLik_Cox_PH_Omnibus_Log_Bound_Search(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double mult) {
500500
//
501501
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -1368,7 +1368,7 @@ List LogLik_Cox_PH_Omnibus_Log_Bound_Search(IntegerVector term_n, StringVector t
13681368
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
13691369
//' @noRd
13701370
//'
1371-
// [[Rcpp::export]]
1371+
//
13721372
ListLogLik_Poisson_Omnibus_Log_Bound(const MatrixXd& PyrC,const MatrixXd& dfs, IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double mult) {
13731373
//
13741374
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -1768,7 +1768,7 @@ List LogLik_Poisson_Omnibus_Log_Bound(const MatrixXd& PyrC, const MatrixXd& dfs,
17681768
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
17691769
//' @noRd
17701770
//'
1771-
// [[Rcpp::export]]
1771+
//
17721772
ListLogLik_Poisson_Omnibus_Log_Bound_Search(const MatrixXd& PyrC,const MatrixXd& dfs, IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double mult) {
17731773
//
17741774
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -2602,7 +2602,7 @@ List LogLik_Poisson_Omnibus_Log_Bound_Search(const MatrixXd& PyrC, const MatrixX
26022602
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
26032603
//' @noRd
26042604
//'
2605-
// [[Rcpp::export]]
2605+
//
26062606
ListLogLik_Cox_PH_Omnibus_Log_Bound_CurveSearch(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double step_size) {
26072607
//
26082608
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -3060,7 +3060,7 @@ List LogLik_Cox_PH_Omnibus_Log_Bound_CurveSearch(IntegerVector term_n, StringVec
30603060
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
30613061
//' @noRd
30623062
//'
3063-
// [[Rcpp::export]]
3063+
//
30643064
ListLogLik_Poisson_Omnibus_Log_Bound_CurveSearch(const MatrixXd& PyrC,const MatrixXd& dfs, IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res,double qchi,int para_number,int maxstep,double step_size) {
30653065
//
30663066
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking

‎src/Main_Functions.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void visit_lambda(const Mat& m, const Func& f) {
7676
//' @return True for viable point, False for negative error
7777
//' @noRd
7878
//'
79-
// [[Rcpp::export]]
79+
//
8080
boolCheck_Risk(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads,constdouble gmix_theta,const IntegerVector gmix_term) {
8181
//
8282
List temp_list =List::create(_["Status"] ="FAILED");// used as a dummy return value for code checking
@@ -132,7 +132,7 @@ bool Check_Risk(IntegerVector term_n, StringVector tform, NumericVector a_n, Num
132132
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
133133
//' @noRd
134134
//'
135-
// [[Rcpp::export]]
135+
//
136136
ListLogLik_Cox_PH_Omnibus(IntegerVector term_n, StringVector tform, NumericMatrix& a_ns, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
137137
//
138138
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -728,7 +728,7 @@ List LogLik_Cox_PH_Omnibus(IntegerVector term_n, StringVector tform, NumericMatr
728728
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
729729
//' @noRd
730730
//'
731-
// [[Rcpp::export]]
731+
//
732732
ListLogLik_Pois_Omnibus(const MatrixXd& PyrC, IntegerVector term_n, StringVector tform, NumericMatrix& a_ns, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads,const MatrixXd& dfs, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
733733
//
734734
List temp_list =List::create(_["Status"] ="FAILED");// used as a dummy return value for code checking
@@ -1276,7 +1276,7 @@ List LogLik_Pois_Omnibus(const MatrixXd& PyrC, IntegerVector term_n, StringVecto
12761276
//' @return only if it works
12771277
//' @noRd
12781278
//'
1279-
// [[Rcpp::export]]
1279+
//
12801280
ListLogLik_CaseCon_Omnibus(IntegerVector term_n, StringVector tform, NumericMatrix& a_ns, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
12811281
//
12821282
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -2107,7 +2107,7 @@ List LogLik_CaseCon_Omnibus(IntegerVector term_n, StringVector tform, NumericMat
21072107
//' @return List of final results: Log-likelihood of optimum, first derivative of log-likelihood, second derivative matrix, parameter list, standard deviation estimate, AIC, model information
21082108
//' @noRd
21092109
//'
2110-
// [[Rcpp::export]]
2110+
//
21112111
ListLogLik_Logist_Omnibus(const MatrixXd& CountEvent, IntegerVector term_n, StringVector tform, NumericMatrix& a_ns, NumericMatrix& x_all, IntegerVector dfc,int fir, string modelform,double lr, List optim_para, NumericVector maxiters,int guesses,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
21122112
//
21132113
List temp_list =List::create(_["Status"] ="FAILED");// used as a dummy return value for code checking

‎src/Main_Multi.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void visit_lambda(const Mat& m, const Func& f) {
7676
//' @return List of final results: Log-likelihood of optimum, standard error, and convergence for each realization
7777
//' @noRd
7878
//'
79-
// [[Rcpp::export]]
79+
//
8080
ListLogLik_Cox_PH_Multidose_Omnibus_Serial(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, NumericMatrix& dose_all, IntegerMatrix dose_cols, IntegerVector dose_index, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
8181
//
8282
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -583,7 +583,7 @@ List LogLik_Cox_PH_Multidose_Omnibus_Serial(IntegerVector term_n, StringVector t
583583
//' @return List of final results: standard cox outputs for the integrated solution
584584
//' @noRd
585585
//'
586-
// [[Rcpp::export]]
586+
//
587587
ListLogLik_Cox_PH_Multidose_Omnibus_Integrated(IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, NumericMatrix& dose_all, IntegerMatrix dose_cols, IntegerVector dose_index, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon, NumericMatrix df_groups, NumericVector tu,int verbose, IntegerVector KeepConstant,int term_tot, string ties_method,int nthreads, NumericVector& Strata_vals,const VectorXd& cens_weight, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
588588
//
589589
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -1189,7 +1189,7 @@ List LogLik_Cox_PH_Multidose_Omnibus_Integrated(IntegerVector term_n, StringVect
11891189
//' @return List of final results: Log-likelihood of optimum, standard error, and convergence for each realization
11901190
//' @noRd
11911191
//'
1192-
// [[Rcpp::export]]
1192+
//
11931193
ListLogLik_Pois_PH_Multidose_Omnibus_Serial(const MatrixXd& PyrC, IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, NumericMatrix& dose_all, IntegerMatrix dose_cols, IntegerVector dose_index, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,const MatrixXd& dfs,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
11941194
//
11951195
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking
@@ -1593,7 +1593,7 @@ List LogLik_Pois_PH_Multidose_Omnibus_Serial(const MatrixXd& PyrC, IntegerVector
15931593
//' @return List of final results: standard cox outputs for the integrated solution
15941594
//' @noRd
15951595
//'
1596-
// [[Rcpp::export]]
1596+
//
15971597
ListLogLik_Pois_PH_Multidose_Omnibus_Integrated(const MatrixXd& PyrC, IntegerVector term_n, StringVector tform, NumericVector a_n, NumericMatrix& x_all, NumericMatrix& dose_all, IntegerMatrix dose_cols, IntegerVector dose_index, IntegerVector dfc,int fir, string modelform,double lr, List optim_para,int maxiter,int halfmax,double epsilon,double step_max,double thres_step_max,double deriv_epsilon,const MatrixXd& dfs,int verbose, IntegerVector KeepConstant,int term_tot,int nthreads, List model_bool,constdouble gmix_theta,const IntegerVector gmix_term,const MatrixXd Lin_Sys,const VectorXd Lin_Res) {
15981598
//
15991599
List temp_list =List::create(_["Status"] ="TEMP");// used as a dummy return value for code checking

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp