lines.nproc: Add NP-ROC curves to the current plot object.

Description Usage Arguments See Also Examples

View source: R/lines.nproc.R

Description

Add NP-ROC curves to the current plot object.

Usage

1
2
## S3 method for class 'nproc'
lines(x, ...)

Arguments

x

fitted NP-ROC object using nproc.

...

additional arguments.

See Also

npc, nproc and plot.nproc.

Examples

1
2
3
4
5
6
7
8
n = 1000
x = matrix(rnorm(n*2),n,2)
c = 1+3*x[,1]
y = rbinom(n,1,1/(1+exp(-c)))
fit = nproc(x, y, method = 'nb')
plot(fit)
fit2 = nproc(x, y, method = 'lda')
lines(fit2, col = 2)

nproc documentation built on Sept. 18, 2017, 9:02 a.m.