topmodels | R Documentation |
Given output from quantile regression stochastic search variable selection, this function returns a table of the 'best' models together with their associated empirical posterior probability.
topmodels(qrssvs, nmodels = 5, abbreviate = FALSE, minlength = 3)
qrssvs |
An object of class |
nmodels |
The number of models to tabulate. |
abbreviate |
Logical: should the names of the predictors be abbreviated? |
minlength |
If |
A table with the models and their associated posterior probability. The models are arranged in descending order of probability.
Craig Reed
SSVSquantreg
## Not run:
set.seed(1)
epsilon<-rnorm(100)
set.seed(2)
x<-matrix(rnorm(1000),100,10)
y<-x[,1]+x[,10]+epsilon
qrssvs<-SSVSquantreg(y~x)
topmodels(qrssvs$gamma)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.