Beruflich Dokumente
Kultur Dokumente
NE o <> “Distinto”
LT o < “Menor que” Esta parte es opcional. This part is optional. Puede que no necesite para sele
Le o <= “Menor o igual que” hacer, estos son los comandos más comunes. do, these are the most commo
GT o >”Mayor que”
GE o >= “Mayor o igual que” 1. SELECT IF - Este comando selecciona CASOS conjunto, por lo general
AND o & “Operador y lógico”
OR o | “Operador o lógico” Ejemplos: SELECT si (sexo = 1). Examples: SELECT IF (sex = 1).
Not “Negación lógica SELECCIONAR SI (ESTADO = "Nueva Jersey"). SELECT IF (STATE =
seleccionar si (cualquiera (racegrp, 4,5,6,8)). select if (any(racegrp,4,5,6,8
Ejemplo: los valores que faltan EDAD (0) Example: MISSING VALUES AGE
Score1 a Score10 (999) Score1 to Score10 (999)
ESTADO ("XX"). STATE ("XX").
na CASOS conjunto, por lo general la gente. SELECT IF - This command selects whole CASES, usually people.
LECT IF las declaraciones son acumulativos. Warning! The effect of multiple SELECT IF statements is cumulative. Consulte el manual
mos que este. the TEMPORARY command if you don't want this.
na variable. RECODE - Change the values of a variable. Es mejor hacer esto en una nueva variable creada a partir de It is best to do thi
res antiguos. an old one so you don't lose the old values. Uno nunca sabe cuando puede tener una copia de seguridad You never know
gain. El formato predeterminado para variables de tipo entero nuevo F8.2. The default format for new integer variables is F8.2. Vale la
mando FORMAT. making this more efficient with the FORMAT command.
) (18 al HI = 1) (BAJA al 18 = 0) en los votantes. Example: RECODE AGE (MISSING=9)(18 thru HI=1)(LOW thru 18=0) into VOTER.
2) (otra cosa = 0) en CITYTOWN. RECODE PLACE (1=1)(2 thru 7=2)(else=0) into CITYTOWN.
RT) ("-"= )("&"= 11 12) en NEWMONTH RECODE MONTH (" "=99) (CONVERT) ("-"=11)("&"=12) into NEWMONTH
NTE (F1.0) NEWMONTH (F2.0) FORMATS VOTER CITYTOWN (F1.0) NEWMONTH (F2.0)
for cleaning data as well as recoding (3rd example below). IF - Conditional change. This is useful for cleaning data as well as recoding (3rd example
algunos valores de una variable "que falta" para que no se utilizarán en MISSING VALUES - Declare some values of a variable "missin
RECODE y COMPUTE declaraciones inesperadas y pueden tener Warning! Missing Values affect RECODE and COMPUTE statements
r cualquier variable asegúrese de revisar con mucho cuidado lo que When you create or modify any variable be sure to check very car
pened with the Missing Values. Por ejemplo: For example:
odificados del 2 al 8 se han perdido y no ser recodificados. (Consulte el Manual de Cases coded 2 through 8 are Missing and won't be r
o.) for the VALUE function to get around this.)
ed to select cases or modify or create new variables. Pero si usted But if you
TITLE
SET WIDTH 80
SET HEADER NO
N OF CASES x
SAMPLE [percent]
SAMPLE [n from m]
COMMENT
*
but optional) commands:
Pone una línea del título en su salida. Puts a title line on your output.
Reducir el ancho de la salida de esta manera puede leerlo en una pantalla de ordenador. Narrow the width of the output so yo
easily read it on a computer screen.
Apague las partidas página tras página 1. Turn off the page headings after page 1.
Ejecutar en "x" número de casos para probar el programa. Run on x number of cases to test the program.
Tomar una muestra porcentaje de casos. Take a percentage sample of cases.
Tomar una muestra de n casos de los casos m. Take a sample of n cases from m cases.
Escriba un comentario líneas en su programa. Muy recomendable. El comentario puede extenderse por varias líneas hasta qu
con un punto. Write a comment lines in your program. Highly recommended. The comment can extend for many lines until it
with a period.
Suplente manera de empezar las líneas de comentarios. Alternate way to start comment lines.