https://github.com/jminnier/ptb-beta-paper
A perturbation method for inference on regularized regression estimates
https://github.com/jminnier/ptb-beta-paper
Last synced: 2 months ago
JSON representation
A perturbation method for inference on regularized regression estimates
- Host: GitHub
- URL: https://github.com/jminnier/ptb-beta-paper
- Owner: jminnier
- License: gpl-3.0
- Created: 2016-02-03T18:07:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T18:35:47.000Z (over 9 years ago)
- Last Synced: 2025-02-07T21:19:20.386Z (4 months ago)
- Language: R
- Size: 228 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
- License: LICENSE
Awesome Lists containing this project
README
code{white-space: pre;}
pre:not([class]) {
background-color: white;
}if (window.hljs && document.readyState && document.readyState === "complete") {
window.setTimeout(function() {
hljs.initHighlighting();
}, 0);
}.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
code {
color: inherit;
background-color: rgba(0, 0, 0, 0.04);
}
img {
max-width:100%;
height: auto;
}ptb-beta-paper
Code to implement simulations and data analyses from “A perturbation method for inference on regularized regression estimates”
The functions in this code can be used to obtain confidence intervals for regression coefficients from certain regularized regression methods. Please see the article for reference.
Minnier, J., Tian, L. & Cai, T. (2011), “A perturbation method for inference on regularized regression estimates”“, Journal of the American Statistical Association 106(496), 1371–1382.
Instructions
Simulations
To replicate the simulations, run the files:
1-run-ResampleALASSO-simulations.R
2-run-CompressResample-simulations.R
3-run-Summary-simulations.Rfor various values of
paramnum
to obtain different settings.Data Analysis
To replicate the data analysis, run the file:
ALASSO-HIVexample-May2012.R
Functions
Functions required to implement our methods can be found in the files:
functions-regression.R
functions-CIs.RThe former provides functions to perform adaptive LASSO and perturbation of adaptive LASSO estimates. The latter provides functions to obtain various confidence intervals presented in the paper.
License
Code to implement simulations and data analyses from
"A perturbation method for inference on regularized regression estimates"
Copyright (C) 2010-2016 Jessica Minnier <minnier-at-ohsu.edu>This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.// add bootstrap table styles to pandoc tables
$(document).ready(function () {
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
});(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();