TopModels: Table of top models

Description Usage Arguments Value Author(s) Examples

View source: R/TopModels.R

Description

Generates a table of the top models from a Reversible Jump Results object.

Usage

1
2
3
4
5
6
TopModels(
  results,
  n.top.models = 20,
  covariates.to.include = NULL,
  remove.empty.cols = TRUE
)

Arguments

results

A R2BGLiMS_Results-class object frum running the R2BGLiMS command.

n.top.models

number of top models to include in the table (default 20).

covariates.to.include

Character vector indicating a subset of covariates to calculate marginal posterior combinations for. NOTE: Not yet implemented for enumeration.

Value

Ordered table of best models, with corresponding posterior probabilities. If JAM was run with multiple covariate blocks, a list of model tables is returned.

Author(s)

Paul Newcombe

Examples

1
2
3
4
5
6
library(R2BGLiMS)

### --- Logistic regression with two model space prior components
# Load results from the biopsy logistic regression analysis (see R2MHRJ examples)
data(biopsyResults)
TopModels(biopsyResults)

pjnewcombe/R2BGLiMS documentation built on Feb. 10, 2020, 8:52 p.m.