Runs an optimized implementation of the compute_influence_term_2_quadv_sim_via_matrix
function.
compute_influence_term_2_quadv_sim_via_matrix
function.
pcoriaccel_compute_influence_term_2_quadv_sim_via_matrix( X, Y, times, individual_X, x_slope, alpha, beta, spline_basis, bandwidth, tol = 0.0001220703, kernel = "K2_Biweight" )
X
: Matrix of all covariates, transformed as necessary by modelY
: Vector of all outcomes (same length as a column of X
)times
: Vector of observation times for individualindividual_X
: Matrix of covariates for individual rows correspond to times prepared for inferences for integration.x_slope
: Vector of numeric(length(beta)) indicating howalpha
: Vector of sensitivity parametersbeta
: Vector of coefficients of the outcome modelspline_basis
: Spline basis object (orthogonalsplinebasis::SplineBasis
)bandwidth
: Bandwidth for the kernel density estimate of the outcome model.tol
: Tolerance for integrationkernel
: Kernel function to use for the kernel density estimateintegration result