Description Usage Arguments Value Examples
Prediction using glmaag model
1 2 3 |
object |
fitted glmaag object |
x |
The new dataset to be predicted, do training prediction if x is missing |
lam1 |
lambda1 sequence for prediction, must be within the fitted model |
lam2 |
lambda2 sequence for prediction, must be within the fitted model |
type |
type of prediction (can be "link", "reponse"), ignored for Gaussian model. "link" is the linear predicted score, "response" is the predicted probability for logistic model and relative risk for Cox model |
cutp |
the cut off value for binary outcome, default to be 0.5 |
... |
... |
predicted values
1 2 3 4 5 6 | data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, -(1:3)]
mod <- glmaag(y, x, L0)
pp <- predict(mod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.