You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' Sample from the posterior predictive distribution for outcomes modeled by BART
660
660
#'
661
661
#' @param model_object A fitted BART model object of class `bartmodel`.
662
-
#' @param covariates A matrix or data frame of covariates. Required if the BART model depends on covariates (e.g., contains a mean or variance forest).
663
-
#' @param basis A matrix of bases for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
662
+
#' @param X A matrix or data frame of covariates. Required if the BART model depends on covariates (e.g., contains a mean or variance forest).
663
+
#' @param leaf_basis A matrix of bases for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
664
664
#' @param rfx_group_ids A vector of group IDs for random effects model. Required if the BART model includes random effects.
665
665
#' @param rfx_basis A matrix of bases for random effects model. Required if the BART model includes random effects.
666
666
#' @param num_draws_per_sample The number of posterior predictive samples to draw for each posterior sample. Defaults to a heuristic based on the number of samples in a BART model (i.e. if the BART model has >1000 draws, we use 1 draw from the likelihood per sample, otherwise we upsample to ensure intervals are based on at least 1000 posterior predictive draws).
An array or data frame of covariates at which to compute the intervals. Required if the BART model depends on covariates (e.g., contains a mean or variance forest).
2354
-
basis : np.array, optional
2354
+
leaf_basis : np.array, optional
2355
2355
An array of basis function evaluations for mean forest models with regression defined in the leaves. Required for "leaf regression" models.
2356
2356
rfx_group_ids : np.array, optional
2357
2357
An array of group IDs for random effects. Required if the BART model includes random effects.
0 commit comments