Learn R Programming

HTLR (version 0.4-4)

summary.htlr.fit: Posterior Summaries

Description

This function gives a summary of posterior of parameters.

Usage

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

Value

A point summary of MCMC samples.

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.

Examples

Run this code
set.seed(12345)
data("colon")

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

Run the code above in your browser using DataLab