Notes
Variable construite à partir des variables suivantes :
- SEXE (Sexe)
- ELOISIRA (1er loisir préféré)
- ELOISIRB (2e loisir préféré)
- ELOISIRC (3e loisir préféré)
- ELOISIRD (4e loisir préféré)
- ELOISIRE (5e loisir préféré)
- CLOISIRA (1er loisir préféré du conjoint)
- CLOISIRB (2e loisir préféré du conjoint)
- CLOISIRC (3e loisir préféré du conjoint)
- CLOISIRD (4e loisir préféré du conjoint)
- CLOISIRE (5e loisir préféré du conjoint)
Programme SAS :
if (eloisira in (610 620 621 650 655) or eloisirb in (610 620 621 650 655) or eloisirc in (610 620 621 650 655) or eloisird in (610 620 621 650 655) or eloisire in (610 620 621 650 655)) then do;
if sexe=1 then hcinema=1; if sexe=2 then fcinema=1; end;
if (cloisira in (610 620 621 650 655) or cloisirb in (610 620 621 650 655) or cloisirc in (610 620 621 650 655) or cloisird in (610 620 621 650 655) or cloisire in (610 620 621 650 655)) then do;
if sexe=1 then fcinema=1; if sexe=2 then hcinema=1; end;
if hcinema ne 1 then hcinema=0; if fcinema ne 1 then fcinema=0;