Description Usage Arguments Value References Examples
Generates the fiducial simulations of the parameters of a "large p - small n" regression model and returns the selected models with their probability.
1 |
formula |
a formula describing the model |
data |
dataframe in which to search the variables of the model |
nsims |
number of fiducial simulations |
verbose |
whether to print the messages generated by the screening procedure |
gamma |
tuning parameter; for expert usage only |
... |
named arguments passed to |
A list with two elements: the fiducial simulations in a matrix
(fidSims
) and a vector giving the probabilities of the selected
models (models
).
Randy C. S. Lai, Jan Hannig & Thomas C. M. Lee. Generalized Fiducial Inference for Ultrahigh-Dimensional Regression. Journal of the American Statistical Association, Volume 110, 2015 - Issue 510, 760-772. <doi:10.1080/01621459.2014.931237>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # data ####
set.seed(666L)
n <- 300L
p <- 1000L
X <- matrix(rnorm(n * p), nrow = n, ncol = p)
colnames(X) <- paste0("x", 1L:p)
beta <- c(4, 5, 6, 7, 8)
y <- X[, 1L:5L] %*% beta + rnorm(n, sd = 0.9)
dat <- cbind(y, as.data.frame(X))
# fiducial simulations ####
gfi <- gfiUltra(y ~ ., data = dat, nsims = 10000L)
# selected models
gfi$models
# fiducial confidence intervals
gfiConfInt(gfi)
# fiducial estimates
gfiEstimates(gfi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.