as.matrix.htlr.fit | R Documentation |
The Markov chain samples (without warmup) included in a htlr.fit
object will be coerced to a matrix.
## S3 method for class 'htlr.fit'
as.matrix(x, k = NULL, include.warmup = FALSE, ...)
x |
An object of S3 class |
k |
Coefficients associated with class |
include.warmup |
Whether or not to include warmup samples |
... |
Not used. |
A matrix with (p + 1)
columns and i
rows, where p
is the number of features
excluding intercept, and i
is the number of iterations after burnin.
## No. of features used: 100; No. of iterations after burnin: 15
fit <- htlr(X = colon$X, y = colon$y, fsel = 1:100, iter = 20, warmup = 5)
dim(as.matrix(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.