pcop-methods: Methods for pcop objects

pcop-methodsR Documentation

Methods for pcop objects

Description

Print, summary, and plot methods for objects returned by pcop().

Usage

## S3 method for class 'pcop'
print(x, ...)
## S3 method for class 'pcop'
summary(object, ...)
## S3 method for class 'summary.pcop'
print(x, ...)
## S3 method for class 'pcop'
plot(x, ...)

Arguments

x

A pcop or summary.pcop object.

object

A pcop object.

...

Additional arguments passed to methods. For plot.pcop(), arguments are passed to graphics::plot.

Value

print.pcop(), print.summary.pcop(), and plot.pcop() return their input invisibly. summary.pcop() returns a compact summary object.

Examples

set.seed(1)
x <- runif(100, -1, 1)
x <- cbind(x, x ^ 2 + rnorm(100, sd = 0.1))
fit <- pcop(x, plot.true = FALSE)

print(fit)
summary(fit)
if (interactive()) {
  plot(fit)
}

Rpcop documentation built on June 24, 2026, 5:08 p.m.