Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86c07ac
commit 9b63604
Showing
9 changed files
with
179 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Package: qut | ||
Type: Package | ||
Title: Quantile Universal Threshold | ||
Version: 1.0 | ||
Version: 1.0.1 | ||
Author: Jairo Diaz, Sylvain Sardy, Caroline Giacobino, Nick Hengartner. | ||
Maintainer: Jairo Diaz <jairo.diaz@unige.ch> | ||
Description: Selection of a threshold parameter for GLM-lasso to obtain a sparse model | ||
with a good compromise between high true positive rate and low false discovery rate. | ||
License: GPL-2 | ||
Depends: Matrix, glmnet, lars | ||
NeedsCompilation: no | ||
Packaged: 2015-09-20 07:54:10 UTC; Jairo | ||
Packaged: 2015-11-22 20:28:55 UTC; Jairo | ||
Repository: CRAN | ||
Date/Publication: 2015-09-20 15:41:39 | ||
Date/Publication: 2015-11-23 12:20:39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
796386f5b46abf28de97ed5e6bfa948a *DESCRIPTION | ||
7e939e6767941731e8bc9e537d7ebf75 *NAMESPACE | ||
b35d2c3fe626c987a1236bf500ff89a1 *R/lambdaqut.R | ||
e4c9210192d1c05af27334a477b198f5 *DESCRIPTION | ||
4f9cf21e088bc66df0acd208ededb1df *NAMESPACE | ||
6ec7a07d1de47c081c07680ff189c26c *R/coef.qut.R | ||
788f694e8b29a08e21e1b634a51c61c2 *R/lambdaqut.R | ||
c5c0e9083a2d2266484c69cec2892cfe *R/predict.qut.R | ||
60b8c469d26b0a0a513bad3854bf3aca *R/qut.R | ||
dacf6caafe796d2c4ab4f614ab8ad9e1 *R/qut.R | ||
07d830a8b07ef1d53e36e1e72b24b789 *R/sigmaqut.R | ||
83c9097fad099cce1c20298145c00225 *R/sigmarcv.R | ||
6366e619fc2df2a00b86d383beaf2eaf *data/datalist | ||
fb4808ca9012f6abbb606d7d1b21a039 *data/leukemia.rda | ||
3f8a1ef02e84a88f448620114f857d20 *data/riboflavin.rda | ||
82c882af4ff01af36d89fc694e28510f *man/lambdaqut.Rd | ||
a8447c6ed4b177381723ab76d60774c8 *man/lambdaqut.Rd | ||
ed49b029b582232aab02fc804364a362 *man/leukemia.Rd | ||
2fc547bfe76a865d91d34c6954aff496 *man/predict.qut.Rd | ||
a55c86328f997036f9dd03d5fe418434 *man/predict.qut.Rd | ||
b52ed035629cdab2584ed1bd53bd9541 *man/qut-package.Rd | ||
7701f3ae6406752095a020ef17f50a08 *man/qut.Rd | ||
75face335c37e6495e57e559df198f78 *man/qut.Rd | ||
e1e2b3e8a62002755cc157be3174b951 *man/riboflavin.Rd | ||
5cb8388ddf7ecb6984c3ac7afb91319a *man/sigmaqut.Rd | ||
504c41ff245b7e6c27cd3a1eb75b6a43 *man/sigmarcv.Rd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
export(qut,lambdaqut,sigmaqut,sigmarcv,predict.qut) | ||
export(qut,lambdaqut,sigmaqut,sigmarcv,predict.qut,coef.qut) | ||
import(Matrix, glmnet, lars) | ||
importFrom("stats", "coef", "gaussian", "glm", "glm.fit", "lm", | ||
"median", "predict", "quantile", "rbinom", "rnorm", "rpois", | ||
"var") | ||
|
||
S3method(predict, qut) | ||
S3method(predict, qut) | ||
S3method(coef, qut) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
coef.qut <- | ||
function(object, mode='glm',...){ | ||
if(mode=='lasso') return(object$beta) | ||
else{ | ||
if(!attr(object$betaglm,'converged')){ | ||
warning('GLM did not converged, returning LASSO coefficients') | ||
return(object$lasso) | ||
} | ||
else return(object$betaglm) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.