View source: R/dCVnet_referencemodels.R
refunreg | R Documentation |
Unregularised prediction models for comparison
refunreg(object, ...)
## Default S3 method:
refunreg(object, ...)
## S3 method for class 'dCVnet'
refunreg(object, univariate = TRUE, doPCA = "auto", ncomp = "auto", ...)
object |
an object to calculate reference logistic regressions for |
... |
arguments to pass on |
univariate |
boolean: also calculate per-variable models? |
doPCA |
first run PCA on the features can be "auto" or a boolean.
|
ncomp |
specify how many components for pca (integer).
|
Calculate uncrossvalidated performance for reference unregularised
models to help interpret dCVnet performance.
given n
observations of p
predictors, the models calculated
are:
a regression using all variables (if n > 5 * p
),
otherwise one using the first round(n / 5)
principal components
a series of models, one for each column in the design matrix - i.e. a mass-univariate approach
Dev Note: the mass-univariate component has a class ('glmlist') used in some summary functions, but this is not currently fully implemented with methods etc.
a list containing:
glm
- the multiple-predictor model (possibly PCA-reduced)
univariate
- an optional glmlist
of models,
one for each predictor
refunreg(default)
: refunreg for dCVnet
object
refunreg(dCVnet)
: refunreg for dCVnet
object
## Not run:
data(QuickStartExample, package = "glmnet")
m <- dCVnet(y = QuickStartExample$y,
data = QuickStartExample$x,
family = "gaussian")
report_reference_performance_summary(refunreg(m))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.