Hi,
I get an error message that I don't understand when I use the SAS CALMAR macro to calculate the weights. I read the documentation and apply it but it doesn't work. Even the example given in the documentation does not work for us.
Here is my data and the Squid macro. Can anyone help me or someone who has already used this SAS Calmar macro can explain to me what is wrong in my code or if I forgot a line of code before running the macro SAS CALMAR.
Thanks in advance. Gick
data BDD_recod;
input Nom $ sexe $ X $ Pond ;
datalines;
Jean Masculin 0-4ans 10
Marie Feminin 5-14ans 10
Pierre Masculin 15-24ans 10
J Feminin 0-4ans 10
M Feminin 5-14ans 10
Pe Masculin 0-4ans 10
Je Masculin 15-24ans 10
Ma Masculin 0-4ans 10
Pire Feminin 25-30ans 10
Mfir Feminin 35-40ans 10
Pell Masculin 40-45ans 10
Jeurs Masculin 15-24ans 10
Mam Masculin 0-4ans 10
Piress Feminin 15-24ans 10
;
data marges_cibles;
input VAR $ N MAR1-MAR6 ;
Cards;
sexe 2 67866 80149 . . . .
X 6 33065.5 39023 35281 21382 11561 7702
;
%CALMAR(DATA=BDD_recod, POIDS=Pond, IDENT=Nom, DATAMAR=marges_cibles, M=2,EDITPOI=OUI,OBSELI=OUI,DATAPOI=SORTIE,POIDSFIN=PONDFIN,LABELPOI=pondération raking ratio)
... View more