|
1 | 1 | # Generated by using Rcpp::compileAttributes() -> do not edit by hand |
2 | 2 | # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
3 | 3 |
|
4 | | -PF_smooth <- function(n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, F, n_max, n_threads, fixed_params, N_fw_n_bw, N_smooth, N_smooth_final, covar_fac, ftol_rel, forward_backward_ESS_threshold, debug, N_first, type, nu, method, smoother, model) { |
5 | | - .Call(`_dynamichazard_PF_smooth`, n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, F, n_max, n_threads, fixed_params, N_fw_n_bw, N_smooth, N_smooth_final, covar_fac, ftol_rel, forward_backward_ESS_threshold, debug, N_first, type, nu, method, smoother, model) |
| 4 | +PF_smooth <- function(n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, Fmat, n_max, n_threads, fixed_params, N_fw_n_bw, N_smooth, N_smooth_final, covar_fac, ftol_rel, forward_backward_ESS_threshold, debug, N_first, type, nu, method, smoother, model) { |
| 5 | + .Call(`_dynamichazard_PF_smooth`, n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, Fmat, n_max, n_threads, fixed_params, N_fw_n_bw, N_smooth, N_smooth_final, covar_fac, ftol_rel, forward_backward_ESS_threshold, debug, N_first, type, nu, method, smoother, model) |
6 | 6 | } |
7 | 7 |
|
8 | | -particle_filter <- function(n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, F, n_threads, fixed_params, N_fw_n_bw, forward_backward_ESS_threshold, debug, N_first, nu, type, is_forward, method, model, covar_fac, ftol_rel) { |
9 | | - .Call(`_dynamichazard_particle_filter`, n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, F, n_threads, fixed_params, N_fw_n_bw, forward_backward_ESS_threshold, debug, N_first, nu, type, is_forward, method, model, covar_fac, ftol_rel) |
| 8 | +particle_filter <- function(n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, Fmat, n_threads, fixed_params, N_fw_n_bw, forward_backward_ESS_threshold, debug, N_first, nu, type, is_forward, method, model, covar_fac, ftol_rel) { |
| 9 | + .Call(`_dynamichazard_particle_filter`, n_fixed_terms_in_state_vec, X, fixed_terms, tstart, tstop, a_0, R, Q_0, Q, Q_tilde, risk_obj, Fmat, n_threads, fixed_params, N_fw_n_bw, forward_backward_ESS_threshold, debug, N_first, nu, type, is_forward, method, model, covar_fac, ftol_rel) |
10 | 10 | } |
11 | 11 |
|
12 | | -compute_PF_summary_stats <- function(rcpp_list, n_threads, a_0, Q, Q_0, R, debug, F, do_use_F = FALSE, do_compute_E_x = TRUE) { |
13 | | - .Call(`_dynamichazard_compute_PF_summary_stats`, rcpp_list, n_threads, a_0, Q, Q_0, R, debug, F, do_use_F, do_compute_E_x) |
| 12 | +compute_PF_summary_stats <- function(rcpp_list, n_threads, a_0, Q, Q_0, R, debug, Fmat, do_use_F = FALSE, do_compute_E_x = TRUE) { |
| 13 | + .Call(`_dynamichazard_compute_PF_summary_stats`, rcpp_list, n_threads, a_0, Q, Q_0, R, debug, Fmat, do_use_F, do_compute_E_x) |
14 | 14 | } |
15 | 15 |
|
16 | 16 | PF_est_params_dens <- function(rcpp_list, n_threads, a_0, Q, Q_0, R, debug, do_est_a_0 = FALSE, only_QR = FALSE) { |
17 | 17 | .Call(`_dynamichazard_PF_est_params_dens`, rcpp_list, n_threads, a_0, Q, Q_0, R, debug, do_est_a_0, only_QR) |
18 | 18 | } |
19 | 19 |
|
20 | | -PF_get_score_n_hess_cpp <- function(fw_cloud, Q, F, risk_obj, ran_vars, fixed_terms, tstart, tstop, fixed_params, family, max_threads, debug, a_0, R, Q_0, Q_tilde, N_fw_n_bw, N_first, nu, covar_fac, ftol_rel, method, forward_backward_ESS_threshold, use_O_n_sq = FALSE, only_score = FALSE) { |
21 | | - .Call(`_dynamichazard_PF_get_score_n_hess_cpp`, fw_cloud, Q, F, risk_obj, ran_vars, fixed_terms, tstart, tstop, fixed_params, family, max_threads, debug, a_0, R, Q_0, Q_tilde, N_fw_n_bw, N_first, nu, covar_fac, ftol_rel, method, forward_backward_ESS_threshold, use_O_n_sq, only_score) |
| 20 | +PF_get_score_n_hess_cpp <- function(fw_cloud, Q, Fmat, risk_obj, ran_vars, fixed_terms, tstart, tstop, fixed_params, family, max_threads, debug, a_0, R, Q_0, Q_tilde, N_fw_n_bw, N_first, nu, covar_fac, ftol_rel, method, forward_backward_ESS_threshold, use_O_n_sq = FALSE, only_score = FALSE) { |
| 21 | + .Call(`_dynamichazard_PF_get_score_n_hess_cpp`, fw_cloud, Q, Fmat, risk_obj, ran_vars, fixed_terms, tstart, tstop, fixed_params, family, max_threads, debug, a_0, R, Q_0, Q_tilde, N_fw_n_bw, N_first, nu, covar_fac, ftol_rel, method, forward_backward_ESS_threshold, use_O_n_sq, only_score) |
22 | 22 | } |
23 | 23 |
|
24 | 24 | pf_fixed_effect_get_QR <- function(clouds, risk_obj, ran_vars, fixed_terms, R_top, tstart, tstop, fixed_params, family, max_threads, debug) { |
@@ -161,36 +161,36 @@ linear_mapper_test <- function(A, x, X, z, Z, type, R) { |
161 | 161 | .Call(`_dynamichazard_linear_mapper_test`, A, x, X, z, Z, type, R) |
162 | 162 | } |
163 | 163 |
|
164 | | -check_state_fw <- function(parent, parent1, child, child1, F, Q) { |
165 | | - .Call(`_dynamichazard_check_state_fw`, parent, parent1, child, child1, F, Q) |
| 164 | +check_state_fw <- function(parent, parent1, child, child1, Fmat, Q) { |
| 165 | + .Call(`_dynamichazard_check_state_fw`, parent, parent1, child, child1, Fmat, Q) |
166 | 166 | } |
167 | 167 |
|
168 | | -check_state_bw <- function(parent, parent1, child, child1, F, Q) { |
169 | | - .Call(`_dynamichazard_check_state_bw`, parent, parent1, child, child1, F, Q) |
| 168 | +check_state_bw <- function(parent, parent1, child, child1, Fmat, Q) { |
| 169 | + .Call(`_dynamichazard_check_state_bw`, parent, parent1, child, child1, Fmat, Q) |
170 | 170 | } |
171 | 171 |
|
172 | | -check_artificial_prior <- function(state, F, Q, m_0, Q_0, t1, t2, t3) { |
173 | | - .Call(`_dynamichazard_check_artificial_prior`, state, F, Q, m_0, Q_0, t1, t2, t3) |
| 172 | +check_artificial_prior <- function(state, Fmat, Q, m_0, Q_0, t1, t2, t3) { |
| 173 | + .Call(`_dynamichazard_check_artificial_prior`, state, Fmat, Q, m_0, Q_0, t1, t2, t3) |
174 | 174 | } |
175 | 175 |
|
176 | 176 | check_observational_cdist <- function(X, is_event, offsets, tstart, tstop, bin_start, bin_stop, multithreaded, fam, state, state1) { |
177 | 177 | .Call(`_dynamichazard_check_observational_cdist`, X, is_event, offsets, tstart, tstop, bin_start, bin_stop, multithreaded, fam, state, state1) |
178 | 178 | } |
179 | 179 |
|
180 | | -check_fw_bw_comb <- function(F, Q, parent, parent1, grand_child, grand_child1, x, nu) { |
181 | | - .Call(`_dynamichazard_check_fw_bw_comb`, F, Q, parent, parent1, grand_child, grand_child1, x, nu) |
| 180 | +check_fw_bw_comb <- function(Fmat, Q, parent, parent1, grand_child, grand_child1, x, nu) { |
| 181 | + .Call(`_dynamichazard_check_fw_bw_comb`, Fmat, Q, parent, parent1, grand_child, grand_child1, x, nu) |
182 | 182 | } |
183 | 183 |
|
184 | | -check_prior_bw_comb <- function(F, Q, m_0, Q_0, child, child1, parent, t1, t2) { |
185 | | - .Call(`_dynamichazard_check_prior_bw_comb`, F, Q, m_0, Q_0, child, child1, parent, t1, t2) |
| 184 | +check_prior_bw_comb <- function(Fmat, Q, m_0, Q_0, child, child1, parent, t1, t2) { |
| 185 | + .Call(`_dynamichazard_check_prior_bw_comb`, Fmat, Q, m_0, Q_0, child, child1, parent, t1, t2) |
186 | 186 | } |
187 | 187 |
|
188 | | -check_prior_bw_state_comb <- function(X, is_event, offsets, tstart, tstop, bin_start, bin_stop, fam, F, Q, m_0, Q_0, child, child1, parent, t1, Q_xtra, nu = -1L, covar_fac = -1, ftol_rel = 1e-8) { |
189 | | - .Call(`_dynamichazard_check_prior_bw_state_comb`, X, is_event, offsets, tstart, tstop, bin_start, bin_stop, fam, F, Q, m_0, Q_0, child, child1, parent, t1, Q_xtra, nu, covar_fac, ftol_rel) |
| 188 | +check_prior_bw_state_comb <- function(X, is_event, offsets, tstart, tstop, bin_start, bin_stop, fam, Fmat, Q, m_0, Q_0, child, child1, parent, t1, Q_xtra, nu = -1L, covar_fac = -1, ftol_rel = 1e-8) { |
| 189 | + .Call(`_dynamichazard_check_prior_bw_state_comb`, X, is_event, offsets, tstart, tstop, bin_start, bin_stop, fam, Fmat, Q, m_0, Q_0, child, child1, parent, t1, Q_xtra, nu, covar_fac, ftol_rel) |
190 | 190 | } |
191 | 191 |
|
192 | | -logLike_cpp <- function(X, risk_obj, F, Q_0, Q, a_t_d_s, tstart, tstop, fixed_effects_offsets, order_, model) { |
193 | | - .Call(`_dynamichazard_logLike_cpp`, X, risk_obj, F, Q_0, Q, a_t_d_s, tstart, tstop, fixed_effects_offsets, order_, model) |
| 192 | +logLike_cpp <- function(X, risk_obj, Fmat, Q_0, Q, a_t_d_s, tstart, tstop, fixed_effects_offsets, order_, model) { |
| 193 | + .Call(`_dynamichazard_logLike_cpp`, X, risk_obj, Fmat, Q_0, Q, a_t_d_s, tstart, tstop, fixed_effects_offsets, order_, model) |
194 | 194 | } |
195 | 195 |
|
196 | 196 | parallelglm <- function(X, Ys, family, beta0, weights, offsets, tol = 1e-8, nthreads = 1L, it_max = 25L, trace = FALSE, method = "Quick") { |
|
0 commit comments