Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print

Summarizes information about a bartMachine object.


Description

This is an alias for the summary function. See description in that section.

Usage

## S3 method for class 'bartMachine'
print(x, ...)

Arguments

x

An object of class “bartMachine”.

...

Parameters that are ignored.

Value

None.

Author(s)

Adam Kapelner and Justin Bleich

Examples

#Regression example

#generate Friedman data
set.seed(11)
n  = 200 
p = 5
X = data.frame(matrix(runif(n * p), ncol = p))
y = 10 * sin(pi* X[ ,1] * X[,2]) +20 * (X[,3] -.5)^2 + 10 * X[ ,4] + 5 * X[,5] + rnorm(n)

##build BART regression model
bart_machine = bartMachine(X, y)

##print out details
print(bart_machine)

##Also, the default print works too
bart_machine

bartMachine

Bayesian Additive Regression Trees

v1.2.6
GPL-3
Authors
Adam Kapelner and Justin Bleich (R package)
Initial release
2020-12-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.