Description Usage Arguments Value Author(s) See Also Examples
View source: R/lognetProbabilityReusable.R
Method that provides information that can be reused to predict probabilities from the same lognet several times
1 2 3 | lognetProbabilityReusable(lognet, ds,
imputeDs2FitDsProperties = normalImputationConversion(),
usecol, verbosity = 0)
|
lognet |
binomial |
ds |
|
imputeDs2FitDsProperties |
see
|
usecol |
which of the column of beta must be used.
Must be provided if |
verbosity |
The higher this value, the more levels of progress and debug information is displayed (note: in R for Windows, turn off buffered output) |
object of class "lognetProbabilityReusable": list with items:
conversionProps |
|
originalLognet
|
|
usedcol
|
usecol that was passed in (or 1 if only it was missing) |
Nick Sabbe nick.sabbe@ugent.be
1 2 3 4 5 6 7 8 9 10 11 12 | data(iris)
iris.nd2<-numdfr(iris)
y2<-rbinom(nrow(iris), 1, 0.5)
iris.nic2<-normalImputationConversion(
scalingParams=typicalScaleAndCenter(),
transformParams=typicalTransformations())
iris.cp2<-imputeDs2FitDsProps(iris.nic2,iris.nd2,verbosity=1)
iris.cvtd2<-imputeDs2FitDs(iris.cp2,ds=iris.nd2,verbosity=3)
lnet<-glmnet(iris.cvtd2, y2, family="binomial")
lognetProbabilityReusable(lnet, iris.nd2, imputeDs2FitDsProperties=iris.cp2, usecol=5, verbosity=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.