summary.htlr.fit: Posterior Summaries

summary.htlr.fitR Documentation

Posterior Summaries

Description

This function gives a summary of posterior of parameters.

Usage

## S3 method for class 'htlr.fit'
summary(
  object,
  features = 1L:object$p,
  method = median,
  usedmc = get_sample_indice(dim(object$mcdeltas)[3], object$mc.param$iter.rmc),
  ...
)

Arguments

object

An object of S3 class htlr.fit.

features

A vector of indices (int) or names (char) that specify the parameters we will look at. By default all parameters are selected.

method

A function that is used to aggregate the MCMC samples. The default is median, other built-in/customized statistical functions such as mean, sd, and mad can also be used.

usedmc

Indices of Markov chain iterations used for inference. By default all iterations are used.

...

Not used.

Value

A point summary of MCMC samples.

Examples

set.seed(12345)
data("colon")

fit <- htlr(X = colon$X, y = colon$y, fsel = 1:100, iter = 20)
summary(fit, features = 1:16)
  

longhaiSK/HTLR documentation built on Nov. 15, 2024, 10:16 a.m.