show.test {lago}R Documentation

Visualize the Test Data

Description

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.

Usage

## 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)

Arguments

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.

Author(s)

Mu Zhu, University of Waterloo, Canada.

See Also

view.sLago, view.eLago


[Package lago version 0.1-1 Index]