show.test {lago} | R Documentation |
To visualize the test data. Always to be used in conjunction with view.eLago
or
view.sLago
so that the fitted LAGO model can be visualized side by side.
## build (default) eLAGO model obj<-eLago(Y,X) ## visualize the model stuff<-view.eLago(obj, X) ## make predictions score<-rank.eLago(obj, Xnew) ## visualize the test data side by side show.test(stuff, Xnew, Ynew, score=NULL)
stuff |
object produced by view.sLago or view.eLago . |
Xnew |
a matrix of covariates/predictors; test data. |
Ynew |
a vector of binary responses; test data. |
score |
optional; a vector of scores produced by LAGO to rank the items in Xnew .
If provided, the ranking position of every class-1 observation in Xnew will be
added to the plot. |
Mu Zhu, University of Waterloo, Canada.