methods: S3 methods for opscale

Description Usage Arguments Details See Also Examples

Description

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

Usage

1
2
3
4
5
6
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  ###   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)

Example output

Loading required package: lattice
Optimal Scaling Object for Variable x1 : 

   qual quant       os
1     1     3 1.354438
2     1     2 1.354438
3     1     2 1.354438
4     1     2 1.354438
5     2     1 1.354438
6     2     2 1.354438
7     2     3 1.354438
8     3     4 3.086489
9     3     5 3.086489
10    3     2 3.086489
11    3     6 3.086489
12    3     6 3.086489
13    3     4 3.086489
Optimal Transformation for Variable x1 : 

      Measurement Level:  Ordinal 
    Measurement Process:  Discrete 

  initial.values OS.values
1              1  1.354438
2              2  1.354438
3              3  3.086489

optiscale documentation built on Feb. 3, 2021, 9:06 a.m.