View source: R/bkmr_main_functions.R
print.bkmrfit | R Documentation |
print
method for class "bkmrfit"
## S3 method for class 'bkmrfit' print(x, digits = 5, ...)
x |
an object of class "bkmrfit" |
digits |
the number of digits to show when printing |
... |
further arguments passed to or from other methods. |
No return value, prints basic summary of fit to console
## First generate dataset set.seed(111) dat <- SimData(n = 50, M = 4) y <- dat$y Z <- dat$Z X <- dat$X ## Fit model with component-wise variable selection ## Using only 100 iterations to make example run quickly ## Typically should use a large number of iterations for inference set.seed(111) fitkm <- kmbayes(y = y, Z = Z, X = X, iter = 100, verbose = FALSE, varsel = TRUE) fitkm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.