Description Usage Arguments Details See Also Examples
Plot, print, shepard, stress, and summary methods for objects of class opscale
1 2 3 4 5 6 |
object |
Object of class |
x |
Object of class |
... |
Ignored |
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.
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)
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.