Está en la página 1de 13

Universidad Andina

Néstor Cáceres Velásquez

ECONOMÍA Y NEGOCIOS INTERNACIONALES Asignatura:


TESIS II

Asignación de etiquetas en
Stata y SPSS

Henry Amiel Condori Portillo

Asignación de etiquetas

Concepto
Consiste en asignar etiquetas o
descripción de variables a las
variables y etiquetas de datos a los
datos que generalmente se
presentan como códigos
numéricos.
El objetivo es no depender del
diccionario de datos en el proceso
de análisis de datos.

Ing. Henry Amiel Condori Portillo Área: Investigación

1
SPSS

Ing. Henry Amiel Condori Portillo Área: Investigación

SPSS: ventana principal

Archivo: data_base_excel.xlsx (Valoración ambiental Taquile)

Ing. Henry Amiel Condori Portillo Área: Investigación

2
Importar datos Excel

Ing. Henry Amiel Condori Portillo Área: Investigación

Vista de datos

Ing. Henry Amiel Condori Portillo Área: Investigación

3
Vista de variables

Ing. Henry Amiel Condori Portillo Área: Investigación

Etiqueta de variables

Ing. Henry Amiel Condori Portillo Área: Investigación

4
Etiqueta de valores

Ing. Henry Amiel Condori Portillo Área: Investigación

Etiqueta de valores

Ing. Henry Amiel Condori Portillo Área: Investigación

5
Etiqueta de valores

Ing. Henry Amiel Condori Portillo Área: Investigación

Recodificar variables

Ing. Henry Amiel Condori Portillo Área: Investigación

6
Recodificar variables

Ing. Henry Amiel Condori Portillo Área: Investigación

Recodificar variables

Ing. Henry Amiel Condori Portillo Área: Investigación

7
Stata

Ing. Henry Amiel Condori Portillo Área: Investigación

Stata: ventana principal

Archivo: data_base_excel.xlsx (Valoración ambiental Taquile)

Ing. Henry Amiel Condori Portillo Área: Investigación

8
Importar datos Excel

Ing. Henry Amiel Condori Portillo Área: Investigación

Base de datos en Stata

Ing. Henry Amiel Condori Portillo Área: Investigación

9
Tabulación en Stata

Ing. Henry Amiel Condori Portillo Área: Investigación

Asignación de etiqueta a variables

label variable gen "Género"

label variable DAP "Disposición a pagar por el turismo vivencial"

Ing. Henry Amiel Condori Portillo Área: Investigación

10
Asignación de etiqueta a variables

tab gen

Género | Freq. Percent Cum.


------------+-----------------------------------
0 | 115 45.10 45.10
1 | 140 54.90 100.00
------------+-----------------------------------
Total | 255 100.00

Ing. Henry Amiel Condori Portillo Área: Investigación

Asignación de etiqueta a valores

label define gene 0 "Femenino" 1 "Masculino"

label values gen gene

Género | Freq. Percent Cum.


------------+-----------------------------------
Femenino | 115 45.10 45.10
tab gen Masculino | 140 54.90 100.00
------------+-----------------------------------
Total | 255 100.00

Ing. Henry Amiel Condori Portillo Área: Investigación

11
Recodificar variables

tab edad

edad | Freq. Percent Cum.


------------+-----------------------------------
18 | 5 1.96 1.96
26 | 1 0.39 2.35
29 | 4 1.57 3.92
30 | 2 0.78 4.71

72 | 1 0.39 98.82
73 | 1 0.39 99.22
75 | 1 0.39 99.61
79 | 1 0.39 100.00
------------+-----------------------------------
Total | 255 100.00

Ing. Henry Amiel Condori Portillo Área: Investigación

Recodificar variables

recode edad (min/24=1)(25/34=2)(35/44=3)(45/max=4)(else=.),


into(rangoedad1)
recode edad (min/24=1 "<=24")(25/34=2 "25-34")(35/44=3 "35-
44")(45/max=4 ">=45")(else=.), into(rangoedad2)

label variable rangoedad2 "Rangos de edad"


Rangos de |
edad | Freq. Percent Cum.
------------+-----------------------------------
<=24 | 5 1.96 1.96
tab rangoedad2 25-34 | 37 14.51 16.47
35-44 | 157 61.57 78.04
>=45 | 56 21.96 100.00
------------+-----------------------------------
Total | 255 100.00

Ing. Henry Amiel Condori Portillo Área: Investigación

12
Asignación de etiquetas en Stata y SPSS

Gracias

Ing. Henry Amiel Condori Portillo Área: Investigación

13

También podría gustarte