Print the npc object.
# S3 method for npc
print(x, ...)
fitted npc object using npc
.
additional arguments.
# NOT RUN {
n = 1000
x = matrix(rnorm(n*2),n,2)
c = 1+3*x[,1]
y = rbinom(n,1,1/(1+exp(-c)))
fit = npc(x, y, method = 'lda')
print(fit)
# }
Run the code above in your browser using DataLab