Está en la página 1de 13

# Ejercicio 5.1.

Instalamos y cargamos el paquete SMACOF, y de ahí podemos sacar las matrices de datos
KINSHIPDELTA y TRADING. Usamos en este ejercicio la función smacofSym
KINSHIPDELTA
>kinshipdelta

Aunt Brother Cousin Daughter Father Granddaughter Grandfather
0
79
53
59
73
57
77
79
0
67
62
38
75
57
53
67
0
74
77
74
76
59
62
74
0
57
46
77
73
38
77
57
0
79
51
57
75
74
46
79
0
57
77
57
76
77
51
57
0
55
80
78
54
70
32
29
79
51
72
72
54
29
31
51
63
79
31
29
56
75
56
53
51
74
59
74
58
32
76
53
52
81
51
79
58
28
70
37
63
50
79
80
38
73
29
32
72
55
27
57
51
80
51
80
55
Grandmother Grandson Mother Nephew Niece Sister Son Uncle
Aunt
55
79
51
56
32
58 80
27
Brother
80
51
63
53
76
28 38
57
Cousin
78
72
79
51
53
70 73
51
Daughter
54
72
31
74
52
37 29
80
Father
70
54
29
59
81
63 32
51
Granddaughter
32
29
56
74
51
50 72
80
Grandfather
29
31
75
58
79
79 55
55
Grandmother
0
57
50
79
58
57 78
77
Grandson
57
0
79
51
74
75 47
58
Mother
50
79
0
81
60
39 57
73
Nephew
79
51
81
0
27
76 52
33
Niece
58
74
60
27
0
53 74
56
Sister
57
75
39
76
53
0 62
79
Son
78
47
57
52
74
62
0
59
Uncle
77
58
73
33
56
79 59
0
>data(kinshipdelta)
>res = smacofSym(kinshipdelta)
>res
Aunt
Brother
Cousin
Daughter
Father
Granddaughter
Grandfather
Grandmother
Grandson
Mother
Nephew
Niece
Sister
Son
Uncle

Call: smacofSym(delta = kinshipdelta)
Model: Symmetric SMACOF
Number of objects: 15
Metric stress: 0.06988988
Number of iterations: 204
>summary(res)
Configurations:
Aunt
Brother
Cousin
Daughter
Father
Granddaughter
Grandfather
Grandmother

D1
D2
0.5052 0.4421
-0.3106 -0.6027
0.8603 0.1357
-0.4977 0.2096
-0.5568 -0.4258
-0.0844 0.5313
0.1751 -0.6940
-0.1442 0.7012

0766 7. Destacamos los abuelos que juntos acumulan casi el 23% del stress.3849 -0.0411 4.3729 -0.0627 6.2600 0.0803 8.6309 -0.0387 3.6896 0.0587 5.6963 0.3723 0.0766 7.0591 0.9723 0.1259 -0.5328 -0.1122 11.0503 5.4216 -0.7422 0.Grandson Mother Nephew Niece Sister Son Uncle 0.0367 3. y generan poco stress en la muestra. con un stress métrico de 0.1270 0.6908 0.5135 0.0794 7.6096 Observamos de 15 objetos.6863 0.8858 0.2934 0.1157 11.2954 0.1600 -0.0672 6.3168 Stress per point: Daughter Son Niece Nephew Father Mother Uncle Aunt Cousin Sister Brother Granddaughter Grandson Grandfather Grandmother SPP SPP(%) 0. Este sería el diagrama de descomposición del stress: .8891 0.5109 0.1800 0.0528 5. el test debe realizar 204 iteraciones. Por contrario podemos concluir que los pequeños de la familia son los que dependen de la primera componente mayoritariamente.5248 0.7473 0.0699.0521 0.0473 4.

K.8000000 1.7857143 U.4000000 1.0000000 1.7142857 0.7142857 1.4000000 0.9375000 0.8181818 0.0000000 0.8000000 0.9166667 0.5000000 0.0000000 0.8571429 0.8571429 1.7500000 0.6875000 1.8750000 0.8181818 0.0000000 0.9333333 0.0000000 0.6666667 1.7777778 0.0000000 0.8823529 0.7142857 0.8333333 0.0000000 1.Ze Pola Swed USA USSR U.5000000 0.6000000 0.8750000 1.7142857 0.8333333 0.6250000 1.8750000 0.9230769 0.7272727 0.6666667 0.8750000 1.6250000 0.8888889 0.7777778 0.6666667 0.7500000 1.0000000 0.7142857 0.0000000 1.0000000 0.7692308 1.6250000 0.Ge Arge 0.9166667 0. 0.Ge Aust Braz Cana Chin Czec Egyp E.8571429 0.6666667 0.Ze 0.8333333 0.8571429 0.5000000 0.7500000 0.K.Ge Fran Hung Indi Ital Japa N.8571429 0.4285714 0.7142857 Swed 0.8333333 0.0000000 0.Ge Fran Hung Indi Ital Japa N.8750000 0.8888889 0.8571429 1.0000000 0.9375000 Ital 0.TRADING >trading Aust Braz Cana Chin Czec Egyp E.3846154 0.9166667 0.6250000 .4000000 0.0000000 0.8571429 0.7857143 1.5714286 0.8750000 0.7142857 0.8888889 0.9000000 0.0000000 0.5714286 0.6666667 0.9000000 0.9166667 0.9375000 0.7857143 Japa 0.5714286 0.8571429 0.0000000 0.7500000 0.6666667 0.5714286 0.8750000 1.5714286 0.Ge Aust Braz Cana Chin Czec Egyp E.Ze Pola Swed USA USSR U.8181818 0.6000000 0.8000000 E.7272727 0.4285714 0.7142857 0.0000000 0.7857143 0. W.0000000 0.8888889 0.7500000 0.0000000 0.9090909 0.8666667 Hung 0.Ge Aust Braz Cana Chin Czec Egyp 0.0000000 0.8571429 1.4285714 0.0000000 0.Ge Fran Hung Indi Ital Japa N.5000000 0.7000000 0.8181818 0.9230769 0.8000000 0.0000000 1.9000000 0.7142857 1.8571429 0.9375000 USA 0.7333333 N.K.6666667 0.8571429 0.0000000 0.8750000 USSR 0.8750000 0.7500000 0.0000000 0.7142857 0.5294118 0.8823529 Fran 0.Ze Pola Swed USA USSR U.6250000 0.9090909 1.0000000 0.0000000 0.8888889 0.5000000 0.8571429 1.8888889 1.0000000 0.8000000 0.7500000 0.7692308 1.3333333 0.5000000 0.8461538 0.9166667 0.0000000 0.9333333 0.9166667 0.0000000 0.8888889 0.7777778 0.8333333 0.5000000 0.0000000 0.7500000 0.0000000 0.7857143 0.8888889 0.6666667 0.7142857 0.5833333 0. W.6000000 0.8571429 0.5714286 0.6666667 0.6666667 0.8666667 Indi 0.8750000 1.8000000 0.6666667 0.K.5000000 1.7500000 0. W.7692308 1.0000000 0.8750000 0.8750000 Pola 0.0000000 0.9000000 0.8750000 0.8000000 1.8461538 1.0000000 1.5000000 1.7857143 1.

4211 0.4703 0.0100 4.0054 2.3090 0.Ge 0.5299 N.01129101 Number of iterations: 137 > summary(res) Configurations: D1 D2 Arge -0.0494 0.2825 Aust 0.4270 Indi -0.4270 Swed -0.Ze 0.2163 -0.0597 Arge 0.0264 -0.Ge 0.0029 1.0070 3.1520 Ital 0.0072 3.5317 0. ties = "secondary") Model: Symmetric SMACOF Number of objects: 20 Nonmetric stress: 0.4688 0.7367 N.1840 Braz -0.2709 -0.5448 0.5092 USA 0.3152 Japa -0.3048 -0.0178 8.6047 USSR 0.0822 Japa 0.0064 2.0039 0.2996 Chin 0.Ze -0.Ge 0.1850 Aust -0.7828 -0.3380 0.0152 7.4511 USA -0.2841 W.2956 Chin 0. ties = "secondary") >res Call: smacofSym(delta = trading.K.K.3468 -0.0228 10.8506 0.2296 0.6603 USSR 0.0122 5.3420 E.0954 Czec 0.0091 4.5036 D3 0.0154 7.6170 W. ndim = 3.0072 3.4454 0.3459 Ital 0.1793 -0.2429 Pola 0. 0.0616 0.0540 Egyp -0.7260 -0.2549 0.2875 0.3356 Swed 0.1111 0.6317 0.1678 -0.0326 -0.0412 -0.6500 Cana 0.4137 0.5945 Braz 0.6317 0.3356 Hung 0. metric = FALSE.9575 Indi 0.0571 .0049 2.0110 U.0128 5.3803 U.3702 E.0066 3.0054 2. -0.2730 Hung 0.0492 0.6061 Stress per point: SPP SPP(%) Czec 0.2422 Egyp 0.1359 -0.7299 0.9295 Fran 0.Ge 0.0965 0.1111 Pola 0.0404 Cana -0. ndim = 3.1012 0.0247 11.1008 -0.0135 6.1872 Fran -0.2302 0. metric = FALSE.>data(trading) >res = smacofSym(trading.8231 -0.0494 -0.0086 4.

0113. Alemania del Este. como generadores de mayor stress. EEUU o Nueva Zelanda. con un stress no-métrico 0. Este sería el diagrama de descomposición del stress: . Austria. Por abajo. se comportan con poco stress los países Rep. Destacamos los países China y Brasil. con más de 22% entre los 2.Aquí tenemos 20 objetos donde se realizan 137 iteraciones. Checa.

24 [4.38 5.24 0.00 1.64 6.52 5.00 3.] 7.83 4.98 8.69 5.50 5.50 6.00 4.76 7.29 4.57 [6.12 7.00 2.00 [13.31 6.50 4.29 5.24 6.14] [.71 7.88 6.17 6.45 3.45 5.14 1.21 [2.40 6.07 4.88 5.45 [16.93 5.95 7.07 0.48 3.64 4.40 6.26 [.62 [13.14 2.02 0.14 6.05 0.29 4.00 5.] 7.12 3.24 5.74 3.00 4.50 4.] [13.64 4.52 2.40 [.79 3.38 0.24 4.93 [11.] 3.00 4.36 4.50 [9.90 [.79 5.07 3.12] [.86 [10.60 6.17 [15.4] [1.33 4.] [9.98 6.62 7.52 5.07 [.] 4.] 1.86 6.13] 6.00 7.36 5.00 3.83 5.50 5.00 5.79 5.43 3.5] 4.95 6.55 3.00 4.90 [12.83 4.] 0.79 6.93 6.10 4.98 4.98 4.21 2.07 5.26 5.00 3.14 4.00 6.86 0.24 4.43 0.02 5.98 6.79 4.07 6.31 6.83 5.12 2.48 2.98 7.62 [3.00 3.71 5.76 5.] 6.98 6.] [10.00 3.95 6.17 [11.52 3.55 5.00 6.00 5.] 6.48 5.00 2.81 4.81 5.60 1.17 3.40 3.95 3.] 6.64 4.64 4.95 0.17 2.31 2.93 3.71 1.00 3.88 3.52 [.] [4.52 5.88 4.52 5.67 6.86 7.40 [5.17 2.98 5.86 [7.38 5.64 3.88 4.14 [1.] 5.16] [1.21 6.79 [16.12 6.67 5.07 [14.] 0.19 3.21 5.88 4.43 0.14 8.74 3.19 3.81 4.50 5.19 5.] [5.71 2.86 4.81 5.10 [10.31 4.14 4.52 5.45 4.] 4.60 4.57 [6.] 5.38 3.21 2.02 3.14 5.00 3.17 5.43 5.83 5.00 4.79 6.52 5.79 0.57 0.14 6.00 0.40 3.50 5.55 5.95 6.60 6.] 4.71 6.17 8.40 3.55 4.7] 6.3] [.38 5.64 6.26 [15.1] [.52 5.21 4.88 4.71 3.00 6.00 4.21 4.93 4.] 3.00 4.17 0.40 3.67 3.29 5.83 2.69 6.00 4.88 4.45 0.10] [.] 7.98 7.11] [.45 2.] [3.69 6.26 5.00 8.55 3.5] 2.52 6.40 6.71 5.98 5.00 6.86 [.00 [.3] [.71 2.00 [5.12 0.] 2.12] [.14 6.93 7.64 2.26 3.] 5.93 6.24 5.31 4.93 4.] 5.12 4.95 6.] 7.55 5.00 2.83 2.38 6.31 6.79 3.] 4.86 0.31 5.] 4.] 5.43 7.50 5.60 4.86 [4.83 3.19 3.17 4.] [6.00 4.57 3.33 5.10 0.31 0.12 [9.95 4.31 6.55 5.43 7.21 [8.71 5.36 8.93 7.17 3.60 6.31 4.19 4.93 4.55 4.45 4.36 0.43 2.88 4.31 2.79 3.71 3.05 2.71 8.] [7.] 5.36 4.12 7.55 5.10 6.57 3.76 6.69 7.50 6.00 [.40 3.13] 3.15] [.86 7.2] [.60 4.7] 4.62 5.79 8.48 3.95 5.48 7.60 0.12 7.17 4.79 7.88 4.98 7.17 7.15] [.69 7.50 4.10] [.57 3.8] 5.2] [.60 6.] [14.] 3.55 5.52 5.69 4.95 0.67 5.16] [1.90 5.36 7.79 4.79 8.60 6.] 2.] .14 6.48 6.55 6.05 3.86 6. Aquí usamos la matriz PERCEPTION.17 6.07 7.50 5.86 5.36 6.40 [.33 0.9] [.57 3.43 4.] 4.98 5.43 0.79 4.07 5.2.36 [2.12 3.52 [8.48 6.93 4.43 4.6] 4.71 8.00 3.57 3.02 [3.88 7.95 7. que consta de 16 variables: > perception [[1]] [.] [11.43 [[2]] [.14] [.60 4.40 5.07 6.29 6.67 5.79 1.31 5.95 2.14 6.83 2.50 [.21 1.93 7.71 [12.64 4.55 6.60 5.69 5.52 3.60 4.31 5.14 7.86 4.69 [.95 1.62 5.71 5.52 3.] 6.02 5.76 7.40 7.Ejercicio 5.] [16.48 2.64 5.83 3.45 2.] 6.71 2.10 6.71 5.4] 0.69 4.] [8.71 5.86 5.1] [.00 4.] 4.95 5.86 0.55 6.60 0.79 4.71 5.76 6.86 4.76 6.] 6.98 7.33 6.52 8.00 5.50 3.69 6.00 2.36 4.29 5.10 6.31 0.21 5.43 1.00 3.] [2.8] 7.31 4.17 7.69 5.69 7.86 6.52 3.71 5.86 [7.57 [.00 7.07 5.11] [.] 8.19 5.86 7.43 2.76 7.] [12.36 5.38 5.71 1.] 7.07 3.60 4.26 3.98 5.71 5.45 [14.50 5.64 7.45 3.95 7.14 8.62 3.00 3.6] 4.26 7.48 4.98 8.60 4.00 8.9] [.86 4.52 2.00 4.] [15.

26 5.67 5.69 4.29 2.98 3.] [15.0754 5.0570 4.0603 4.5332 6 0.04907462 Number of iterations: 71 >summary(res) Group Stimulus Space (Joint Configurations): D1 D2 1 -0.7699 -0.76 7.6161 0.4937 15 0.79 6.40 3.7428 .] [14.8712 14 0.3411 10 0.00 4.3199 0.1073 15 0.] [8.] [7.00 3.5651 13 0.] [13.0368 0.9117 2 0.83 5.] [6.64 5.0974 12 0.9553 3 0.95 7.43 3.1101 0.5062 3 -0.76 5.1811 7 -0.8935 -0.] [9.0854 6.40 4.50 3.05 3.] 6.0696 5.71 6.2541 16 0.64 0.0772 6.2545 14 0.1980 0.3820 0.40 7.] [10.00 >data(perception) >res <.6742 1 0.7169 Stress per point: SPP SPP(%) 11 0.1167 11 0.] [3.76 6.4625 0.[2.55 5.00 2.] [16.57 3.6759 -0.0665 5.17 2.90 5.7629 9 0.38 0.02 3.4990 10 0.24 3.4773 16 0.8970 2 -0.0212 -0.31 5.0617 4.] [12.17 2.48 3.3976 0.81 2.] [4.3680 9 0.1521 8 -0.] [11.0592 4.4934 -0.] [5.1779 4 -0.0488 5 0.0818 6.4365 12 -0.88 4.3056 -0.00 2.9173 -0.0622 4.74 6.74 0.83 5.81 6.17 5.smacofIndDiff(perception) >res Call: smacofIndDiff(delta = perception) Model: Three-way SMACOF Number of objects: 16 Metric stress: 0.4600 5 0.2012 -0.64 3.29 5.69 5.

constraint = "idioscal") Model: Three-way SMACOF Number of objects: 16 Metric stress: 0. medido con smacofIndDiff y sus variantes. constraint = "diagonal") Model: Three-way SMACOF Number of objects: 16 Metric stress: 0. constraint = "idioscal") > res. con pequeñas rotaciones entre los métodos. . Todas se representan como una forma de cuadrícula. pero este con 114 iteraciones. 4.0946 0. el más lento.4701 8.idio Call: smacofIndDiff(delta = perception. con sólo 32 iteraciones.3985 >res.id <.0371 8.smacofIndDiff(perception.diag <.05531424 Number of iterations: 32 De los 16 objetos. la manera que resulta más rápida es con idioscal. constraint = "identity") Model: Three-way SMACOF Number of objects: 16 Metric stress: 0. Con mayor stress: 13. y observamos que no hay grandes cambios. constraint = "diagonal") >res.1018 0. constraint = "identity") >res. El menor stress lo generan las variables 11.smacofIndDiff(perception. con cada una de sus variantes.diag Call: smacofIndDiff(delta = perception. y 14.055.05531428 Number of iterations: 114 > res.6 13 4 7 8 0. 1. con un stress métrico de 0.id Call: smacofIndDiff(delta = perception.smacofIndDiff(perception. 9.1037 0.1835 8. 10.1064 7.08491675 Number of iterations: 33 > res.1886 8. Son variables poco diferenciadas con un ratio de stress de 2 entre el máximo y el mínimo de porcentaje de stress por variable. el mismo que con la forma diagonal.idio <.1036 0. Pintamos el diagrama. 7 y 8.

ID DIAG IDIO .

3. Trabajamos con SPSS de nuevo el fichero de Helm (1959). tenemos: .Ejercicio 5. aplicando la el escalamiento multidimensional ALSCAL identidad.

Por otra parte. Tenemos: . si hacemos un Escalamiento Multidimensional para el modelo de diferencias individuales.

.

El stress para el modelo euclídeo de diferencias individuales es menos (0.075 frente a 0.Observamos que los dos modelos dan resultados similares. con una pequeña rotación. los pesos de las componentes son mayores. podemos ver que la ordenación y la separación de los datos es similar. pero conservando el orden y las distancias entre los colores. y en la misma escala observaríamos que se distanciarían más con el ALSCAL. . sólo que con este método.082 del modelo identidad). Si comparamos con PROXSCAL.