Extract.BayesMfp | R Documentation |
Extract a subset of models from a BayesMfp
object.
## S3 method for class 'BayesMfp' x[...]
x |
valid |
... |
transports the indexes of the models |
Daniel Saban\'es Bov\'e
BayesMfp
## generate a BayesMfp object set.seed(19) x1 <- rnorm(n=15) x2 <- rbinom(n=15, size=20, prob=0.5) x3 <- rexp(n=15) y <- rt(n=15, df=2) test <- BayesMfp(y ~ bfp (x2, max = 4) + uc (x1 + x3), nModels = 100, method="exhaustive") ## extract the top ten models test[1:10]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.