Hello,
I am working with this sas code. I have a problem: when I run the code it shows me an error message and yet I think the code is good. Please, if someone can help me pass this step. Here is the code I put. data Base_profils; /*-Macro pour la distrution aléatoire des résultats-*/ call streaminit(55); array probFormula(9)$ _temporary_ ("F1", "F2", "F3", "F3S", "F3S+", "F4", "F5", "F5S", "F6"); array probCode_régime_1er_bénéficiaire (4) $ _temporary_ ("Alsace Moselle", "Exploitant Agricole", "Salarié", "T.N.S."); array probCadre_légal_1er_bénéficiaire (2) $ _temporary_ ("Fonctionnaire", "Autres"); array probDépartement(97) _temporary_ (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97, 99); array probAge_1er_bénéficiaire(70) _temporary_ (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 87, 88); array probFoyer(3)$ _temporary_ ("Seul", "Duo", "Famille"); array probAge_2nd_bénéficiaire(87) _temporary_ (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, .); /*-On défint le nombre d'observation: 5000 obs dans notre cas-*/ do i=1 to 5000; Formule = probFormula(rand('table', 0.134, 0.055, 0.134, 0.630, 0.026, 0.007, 0.003, 0.010, 0.002)); Code_régime_1er_bénéficiaire = probCode_régime_1er_bénéficiaire(rand('table', 0.04, 0.01, 0.89, 0.06 )); Cadre__légal_1er_bénéficiaire= probCadre_légal_1er_bénéficiaire(rand('table', 0.01 , 0.99)); Département = probDépartement(rand('table', 0.0164, 0.0124, 0.0041, 0.0007, 0.0003, 0.0225, 0.0015, 0.0069, 0.0006, 0.0040, 0.0090, 0.0042, 0.0259, 0.0087, 0.0002, 0.0020, 0.0125, 0.0020, 0.0010, 0.0002, 0.0138, 0.0099, 0.0003, 0.0062, 0.0055, 0.0041, 0.0129, 0.0066, 0.0111, 0.0109, 0.0151, 0.0011, 0.0219, 0.0189, 0.0186, 0.0031, 0.0074, 0.0238, 0.0088, 0.0080, 0.0041, 0.0156, 0.0032, 0.0143, 0.0100, 0.0002, 0.0003, 0.0001, 0.0139, 0.0078, 0.0152, 0.0074, 0.0101, 0.0158, 0.0014, 0.0110, 0.0235, 0.0025, 0.0850, 0.0083, 0.0025, 0.0433, 0.0064, 0.0133, 0.0019, 0.0087, 0.0141, 0.0127, 0.0158, 0.0032, 0.0093, 0.0090, 0.0094, 0.0164, 0.0059, 0.0300, 0.0161, 0.0120, 0.0069, 0.0230, 0.0079, 0.0027, 0.0331, 0.0107, 0.0070, 0.0080, 0.0042, 0.0089, 0.0059, 0.0015, 0.0205, 0.0076, 0.0093, 0.0100, 0.0103, 0.0002, 0.0001)); Age_1er_bénéficiaire =probAge_1er_bénéficiaire(rand('table',0.0018, 0.0031, 0.0059, 0.0062, 0.0067, 0.0049, 0.0058, 0.0065, 0.0051, 0.0051, 0.0054, 0.0065, 0.0067, 0.0052, 0.0066, 0.0075, 0.0067, 0.0062, 0.0063, 0.0049, 0.0070, 0.0058, 0.0065, 0.0056, 0.0061, 0.0071, 0.0059, 0.0079, 0.0075, 0.0077, 0.0075, 0.0084, 0.0093, 0.0086, 0.0091, 0.0098, 0.0095, 0.0113, 0.0118, 0.0107, 0.0100, 0.0112, 0.0335, 0.0443, 0.0491, 0.0498, 0.0438, 0.0470, 0.0466, 0.0408, 0.0410, 0.0395, 0.0394, 0.0329, 0.0330, 0.0327, 0.0318, 0.0198, 0.0206, 0.0148, 0.0127, 0.0107, 0.0100, 0.0014, 0.0014, 0.0011, 0.0014, 0.0035, 0.0001, 0.0001)); Foyer = probFoyer(rand('table', 0.75, 0.21, 0.05 )); Age_2nd_bénéficiaire = probAge_2nd_bénéficiaire(rand('table', 0.0018, 0.0016, 0.0019, 0.0012, 0.0026, 0.0023, 0.0028, 0.0025, 0.0021, 0.0026, 0.0025, 0.0024, 0.0037, 0.0029, 0.0034, 0.0032, 0.0031, 0.0041, 0.0032, 0.0027, 0.0016, 0.0014, 0.0006, 0.0006, 0.0007, 0.0002, 0.0003, 0.0002, 0.0003, 0.0006, 0.0005, 0.0010, 0.0005, 0.0007, 0.0008, 0.0010, 0.0009, 0.0006, 0.0010, 0.0008, 0.0007, 0.0009, 0.0015, 0.0010, 0.0010, 0.0009, 0.0008, 0.0014, 0.0011, 0.0014, 0.0015, 0.0015, 0.0012, 0.0017, 0.0022, 0.0032, 0.0046, 0.0048, 0.0064, 0.0078, 0.0078, 0.0090, 0.0088, 0.0099, 0.0092, 0.0113, 0.0097, 0.0083, 0.0085, 0.0088, 0.0081, 0.0078, 0.0064, 0.0066, 0.0067, 0.0039, 0.0025, 0.0023, 0.0014, 0.0016, 0.0014, 0.0003, 0.0003, 0.0001, 0.0002, 0.0004, 0.7459)); output; end; drop i; run;
... View more