View source: R/basic_complementary_functions.R
print.pep | R Documentation |
For each of the top models (shown in columns), the following information is printed: the model representation using variable inclusion indicators, its marginal likelihood (in log scale), the R2, the model dimension, the Bayes factor, posterior odds (comparison made with the highest posterior probability model) and posterior probability. An additional column with the posterior inclusion probabilities of the explanatory variables is also printed.
## S3 method for class 'pep'
print(
x,
n.models = 5,
actual.PO = FALSE,
digits = max(3L, getOption("digits") - 3L),
...
)
x |
An object of class pep (e.g., output of |
n.models |
Positive integer, the number of top models for which information is provided. Default value=5. |
actual.PO |
Logical, relevant for the MC3 algorithm. If |
digits |
Positive integer, the number of digits for printing numbers.
Default value= |
... |
Additional parameters to be passed to
|
The number of models for which information is provided, is computed as the minimum
between the number asked by the user and the number of models present in
the object x
.
No return value, used for printing the results on the R console.
data(UScrime_data)
res <- pep.lm(y~.,data=UScrime_data)
print(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.