as.matrix.htlr.fit {HTLR} | R Documentation |
Create a Matrix of Markov Chain Samples
Description
The Markov chain samples (without warmup) included in a htlr.fit
object will be coerced to a matrix.
Usage
## S3 method for class 'htlr.fit'
as.matrix(x, k = NULL, include.warmup = FALSE, ...)
Arguments
x |
An object of S3 class |
k |
Coefficients associated with class |
include.warmup |
Whether or not to include warmup samples |
... |
Not used. |
Value
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.
Examples
## 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))
[Package HTLR version 0.4-4 Index]