Description Usage Arguments Value Author(s) References See Also Examples
Perform inference in high-dimensional (generalized) linear models using various approaches.
1 2 3 4 5 6 |
x |
Design matrix (without intercept). |
y |
Response vector. |
method |
Multi-splitting ("multi.split") or stability-selection ("stability"). |
B |
Number of sample-splits (for "multi.split") or sub-sample iterations (for "stability"). Default is 50 ("multi.split")or 100 ("stability"). Ignored otherwise. |
fraction |
Fraction of data used at each of the B iterations. |
model.selector |
Function to perform model selection. Default is
|
EV |
(only for "stability"). Bound(s) for expected number of false positives . Can be a vector. |
threshold |
(only for "stability"). Bound on selection frequency. |
gamma |
(only for "multi.split"). Vector of gamma-values. |
classical.fit |
(only
for "multi.split"). Function to calculate (classical)
p-values. Default is |
args.model.selector |
Named list of further arguments for
function |
args.classical.fit |
Named list of further arguments for function
|
verbose |
Should information be printed out while computing (logical). |
... |
Other arguments to be passed to the underlying functions. |
pval |
(only for "multi.split"). Vector of p-values. |
gamma.min |
(only for "multi.split"). Value of gamma where minimal p-values was attained. |
select |
(only for "stability"). List with selected predictors for the supplied values of EV. |
EV |
(only for "stability"). Vector of corresponding values of EV. |
thresholds |
(only for "stability"). Used thresholds. |
freq |
(only for "stability"). Vector of selection frequencies. |
Lukas Meier
Meinshausen, N., Meier, L. and Bühlmann, P. (2009) P-values for high-dimensional regression. Journal of the American Statistical Association 104, 1671–1681.
Meinshausen, N. and Bühlmann, P. (2010) Stability selection (with discussion). Journal of the Royal Statistical Society: Series B 72, 417–473.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | x <- matrix(rnorm(100 * 200), nrow = 100, ncol = 200)
y <- x[,1] * 2 + x[,2] * 2.5 + rnorm(100)
## Multi-splitting with lasso.firstq as model selector function
fit.multi <- hdi(x, y, method = "multi.split",
model.selector =lasso.firstq,
args.model.selector = list(q = 10))
fit.multi
fit.multi$pval.corr[1:10] ## the first 10 p-values
## Stability selection
fit.stab <- hdi(x, y, method = "stability", EV = 2)
fit.stab
fit.stab$freq[1:10] ## frequency of the first 10 predictors
|
Loading required package: scalreg
Loading required package: lars
Loaded lars 1.2
alpha = 0.01: Selected predictors: 1 2
alpha = 0.05: Selected predictors: 1 2
------
Familywise error rate controlled at level alpha.
[1] 2.654112e-15 5.992233e-19 1.000000e+00 1.000000e+00 1.000000e+00
[6] 1.000000e+00 1.000000e+00 1.000000e+00 1.000000e+00 1.000000e+00
Selected predictors:
--------------------
[1] 1 2
--------------------
Expected number of false positives controlled at level 2
[1] 1.00 1.00 0.13 0.10 0.05 0.05 0.00 0.13 0.02 0.05
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.