Skip to content

Commit e462023

Browse files
committed
Updated doc examples
1 parent 2cd3775 commit e462023

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

R/posterior_transformation.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#' bcf_model <- bcf(X_train = X_train, Z_train = Z_train, y_train = y_train,
7777
#' propensity_train = pi_train, num_gfr = 10,
7878
#' num_burnin = 0, num_mcmc = 10)
79-
#' preds <- compute_posterior_contrast_bcf_model(
79+
#' tau_hat_test <- compute_contrast_bcf_model(
8080
#' bcf_model, X0=X_test, X1=X_test, Z0=rep(0, n_test), Z1=rep(1, n_test),
8181
#' propensity_0 = pi_test, propensity_1 = pi_test
8282
#' )
@@ -302,7 +302,7 @@ compute_contrast_bcf_model <- function(
302302
#' y_train <- y[train_inds]
303303
#' bart_model <- bart(X_train = X_train, leaf_basis_train = W_train, y_train = y_train,
304304
#' num_gfr = 10, num_burnin = 0, num_mcmc = 10)
305-
#' contrast <- compute_contrast_bart_model(
305+
#' contrast_test <- compute_contrast_bart_model(
306306
#' bart_model,
307307
#' covariates_0 = X_test,
308308
#' covariates_1 = X_test,

man/compute_contrast_bart_model.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/compute_contrast_bcf_model.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)