methods function

S3 methods for opscale

S3 methods for opscale

Plot, print, shepard, stress, and summary methods for objects of class opscale

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

Arguments

  • object: Object of class opscale
  • x: Object of class opscale
  • ...: Ignored

Details

Method print returns a listing of the data. summary describes the optimal scale transformation. plot calls os.plot and returns an object of class trellis that graphs optimally-scaled values against the original (qualitative) data values.

See Also

os.plot

Examples

### x1 is vector of qualitative data ### x2 is vector of quantitative values x1 <- c(1,1,1,1,2,2,2,3,3,3,3,3,3) x2 <- c(3,2,2,2,1,2,3,4,5,2,6,6,4) ### Optimal scaling, specifying that x1 ### is ordinal-discrete op.scaled <- opscale(x.qual=x1, x.quant=x2, level=2, process=1) print(op.scaled) summary(op.scaled) plot(op.scaled)
  • Maintainer: Dave Armstrong
  • License: GPL-2
  • Last published: 2024-05-16

Useful links