Man pages for stochtree
Stochastic Tree Ensembles (XBART and BART) for Supervised Learning and Causal Inference

bartRun the BART algorithm for supervised learning.
bcfRun the Bayesian Causal Forest (BCF) algorithm for...
calibrateInverseGammaErrorVarianceCalibrate the scale parameter on an inverse gamma prior for...
computeForestLeafIndicesCompute vector of forest leaf indices
computeForestLeafVariancesCompute vector of forest leaf scale parameters
computeForestMaxLeafIndexCompute and return the largest possible leaf index computable...
convertPreprocessorToJsonConvert the persistent aspects of a covariate preprocessor to...
CppJsonClass that stores draws from an random ensemble of decision...
CppRNGClass that wraps a C++ random number generator (for...
createBARTModelFromCombinedJsonConvert a list of (in-memory) JSON representations of a BART...
createBARTModelFromCombinedJsonStringConvert a list of (in-memory) JSON strings that represent...
createBARTModelFromJsonConvert an (in-memory) JSON representation of a BART model to...
createBARTModelFromJsonFileConvert a JSON file containing sample information on a...
createBARTModelFromJsonStringConvert a JSON string containing sample information on a...
createBCFModelFromCombinedJsonConvert a list of (in-memory) JSON strings that represent BCF...
createBCFModelFromCombinedJsonStringConvert a list of (in-memory) JSON strings that represent BCF...
createBCFModelFromJsonConvert an (in-memory) JSON representation of a BCF model to...
createBCFModelFromJsonFileConvert a JSON file containing sample information on a...
createBCFModelFromJsonStringConvert a JSON string containing sample information on a...
createCppJsonCreate a new (empty) C++ Json object
createCppJsonFileCreate a C++ Json object from a Json file
createCppJsonStringCreate a C++ Json object from a Json string
createCppRNGCreate an R class that wraps a C++ random number generator
createForestCreate a forest
createForestDatasetCreate a forest dataset object
createForestModelCreate a forest model object
createForestModelConfigCreate a forest model config object
createForestSamplesCreate a container of forest samples
createGlobalModelConfigCreate a global model config object
createOutcomeCreate an outcome object
createPreprocessorFromJsonReload a covariate preprocessor object from a JSON string...
createPreprocessorFromJsonStringReload a covariate preprocessor object from a JSON string...
createRandomEffectSamplesCreate a 'RandomEffectSamples' object
createRandomEffectsDatasetCreate a random effects dataset object
createRandomEffectsModelCreate a 'RandomEffectsModel' object
createRandomEffectsTrackerCreate a 'RandomEffectsTracker' object
ForestClass that stores a single ensemble of decision trees (often...
ForestDatasetDataset used to sample a forest
ForestModelClass that defines and samples a forest model
ForestModelConfigObject used to get / set parameters and other model...
ForestSamplesClass that stores draws from an random ensemble of decision...
getRandomEffectSamplesGeneric function for extracting random effect samples from a...
getRandomEffectSamples.bartmodelExtract raw sample values for each of the random effect...
getRandomEffectSamples.bcfmodelExtract raw sample values for each of the random effect...
GlobalModelConfigObject used to get / set global parameters and other global...
loadForestContainerCombinedJsonCombine multiple JSON model objects containing forests (with...
loadForestContainerCombinedJsonStringCombine multiple JSON strings representing model objects...
loadForestContainerJsonLoad a container of forest samples from json
loadRandomEffectSamplesCombinedJsonCombine multiple JSON model objects containing random effects...
loadRandomEffectSamplesCombinedJsonStringCombine multiple JSON strings representing model objects...
loadRandomEffectSamplesJsonLoad a container of random effect samples from json
loadScalarJsonLoad a scalar from json
loadVectorJsonLoad a vector from json
OutcomeOutcome / partial residual used to sample an additive model.
predict.bartmodelPredict from a sampled BART model on new data
predict.bcfmodelPredict from a sampled BCF model on new data
preprocessPredictionDataPreprocess covariates. DataFrames will be preprocessed based...
preprocessTrainDataPreprocess covariates. DataFrames will be preprocessed based...
RandomEffectSamplesClass that wraps the "persistent" aspects of a C++ random...
RandomEffectsDatasetDataset used to sample a random effects model
RandomEffectsModelThe core "model" class for sampling random effects.
RandomEffectsTrackerClass that defines a "tracker" for random effects models,...
resetActiveForestReset an active forest, either from a specific forest in a...
resetForestModelRe-initialize a forest model (tracking data structures) from...
resetRandomEffectsModelReset a 'RandomEffectsModel' object based on the parameters...
resetRandomEffectsTrackerReset a 'RandomEffectsTracker' object based on the parameters...
rootResetRandomEffectsModelReset a 'RandomEffectsModel' object to its "default" state
rootResetRandomEffectsTrackerReset a 'RandomEffectsTracker' object to its "default" state
sampleGlobalErrorVarianceOneIterationSample one iteration of the (inverse gamma) global variance...
sampleLeafVarianceOneIterationSample one iteration of the leaf parameter variance model...
saveBARTModelToJsonConvert the persistent aspects of a BART model to (in-memory)...
saveBARTModelToJsonFileConvert the persistent aspects of a BART model to (in-memory)...
saveBARTModelToJsonStringConvert the persistent aspects of a BART model to (in-memory)...
saveBCFModelToJsonConvert the persistent aspects of a BCF model to (in-memory)...
saveBCFModelToJsonFileConvert the persistent aspects of a BCF model to (in-memory)...
saveBCFModelToJsonStringConvert the persistent aspects of a BCF model to (in-memory)...
savePreprocessorToJsonStringConvert the persistent aspects of a covariate preprocessor to...
stochtree-packagestochtree: Stochastic Tree Ensembles (XBART and BART) for...
stochtree documentation built on April 4, 2025, 2:11 a.m.