Learn R Programming

SSVS (version 2.1.0)

summary.ssvs: Summarize results of an SSVS model

Description

Summarize results from SSVS including marginal inclusion probabilities, Bayesian model averaged parameter estimates, and 95% highest posterior density credible intervals. Estimates and credible intervals are based on standardized X variables.

Usage

# S3 method for ssvs
summary(object, interval = 0.89, threshold = 0, ordered = FALSE, ...)

Value

A dataframe with results

Arguments

object

An SSVS result object obtained from ssvs()

interval

The desired probability for the credible interval, specified as a decimal

threshold

Minimum MIP threshold where a predictor will be shown in the output, specified as a decimal

ordered

If TRUE, order the results based on MIP (in descending order)

...

Ignored

Examples

Run this code
# \donttest{
outcome <- "qsec"
predictors <- c("cyl", "disp", "hp", "drat", "wt", "vs", "am", "gear", "carb", "mpg")
results <- ssvs(data = mtcars, x = predictors, y = outcome, progress = FALSE)
summary(results, interval = 0.9, ordered = TRUE)
# }

Run the code above in your browser using DataLab