PO.EN.predict | R Documentation |
A prediction function using the linear predictor of PO-EN fitting results.
PO.EN.predict(X, beta)
X |
Input design matrix. Should not include the intercept vector. |
beta |
A coefficients vector from the PO-EN fitting function. |
PO.EN.cv<-cv.PO.EN(x_train,y_train,input.pi=seq(0.01,0.4,length.out=10)) PO.EN.beta<-PO.EN(x_train,y_train,lambda=PO.EN.cv$lambda.min, true.prob=PO.EN.cv$pi,beta_start=rep(0,ncol(x_train)+1)) predictions<-PO.EN.predict(x_test,PO.EN.beta) roc(y_test~predictions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.