Description Usage Arguments Value Note Author(s) Examples
Fit logistic regression by using logistic LASSO with lambda=0
1 2 3 4 5 6 7 | fit.logreg(ds, out, wts = rep(1, nrow(ds)),
verbosity = 0, useCols = NULL, fakeLam,
imputeDs2FitDsProperties = normalImputationConversion(),
..., type.measure = NULL, nfolds = 10, foldid)
logregLikeGlmnet(x, y, useLambda = Inf, verbosity = 0,
...)
|
ds |
dataset ( |
out |
outcome vector |
wts |
weight vector per observation (does not have to sum to 1, and defaults to equal weights) |
verbosity |
The higher this value, the more levels of progress and debug information is displayed (note: in R for Windows, turn off buffered output) |
useCols |
restrict the regression to only include these columns as predictors |
fakeLam |
optionally pass in the lambdas here |
imputeDs2FitDsProperties |
see
|
... |
passed on to
|
type.measure |
see |
nfolds |
see |
foldid |
see |
x |
model matrix (as supported by |
y |
outcomes (as supported by |
useLambda |
lambda item of the return value |
glmnet
object
similar to the return value of glmnet
The warning in the old function pointed me to the fact that the weights are _not_ probability weights in a binomial glm!! So, as an alternative, we use glmnet with lambda=0 !!!
Nick Sabbe nick.sabbe@ugent.be
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.