fitted.glmnetcr {glmnetcr}R Documentation

AIC, BIC, Predicted Class, and Fitted Probabilities of Class Membership

Description

For a given step, returns the AIC, BIC, predicted class, and the fitted probabilities for the K classes.

Usage

## S3 method for class 'glmnetcr'
fitted(object, newx = NULL, s, ...)

Arguments

object

a glmnetcr object

newx

a data matrix representing the predictor variables, if missing defaults to original data used in fitting the model

s

the step at which the fitted probabilities and class are desired

...

additional optional arguments

Value

AIC

AIC at step s

BIC

BIC at step s

class

a vector of length n indicating the predicted class for each observation in newx at step s

probs

a matrix with n rows and K columns indicating the fitted class probabilities for each observation and class in new at step x

Author(s)

Kellie J. Archer, archer.43@osu.edu

See Also

See Also as predict.glmnetcr, select.glmnetcr

Examples

data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnetcr(x, y)
fitted(glmnet.fit, s = select.glmnetcr(glmnet.fit))

[Package glmnetcr version 1.0.6 Index]