print.haldensify: Print Method for Highly Adaptive Lasso Conditional Density...

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Print Method for Highly Adaptive Lasso Conditional Density Estimation

Usage

1
2
## S3 method for class 'haldensify'
print(x, ...)

Arguments

x

An object of class haldensify.

...

Other options (not currently used).

Details

The print method for objects of class haldensify

Value

None. Called for the side effect of printing an informative summary of slots of objects of class haldensify.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# simulate data: W ~ U[-4, 4] and A|W ~ N(mu = W, sd = 0.5)
set.seed(429153)
n_train <- 50
w <- runif(n_train, -4, 4)
a <- rnorm(n_train, w, 0.5)
# learn relationship A|W using HAL-based density estimation procedure
haldensify_fit <- haldensify(
  A = a, W = w, n_bins = c(3, 5),
  lambda_seq = exp(seq(-1, -10, length = 50)),
  max_degree = 3, smoothness_orders = 0, reduce_basis = 0.1
)
print(haldensify_fit)

nhejazi/haldensify documentation built on May 7, 2021, 12:10 a.m.