Dear SAS IML Experts, I have some simulated data, n=500 in the following format: x1 x2 x3 x4 x5 y1 y2 y3 y4 y5 count I need to fit a cubic spline to each observation, probably by using the Splinec call in SAS/IML, and output 'nout' (200 fitted points). But Splinec requires that I input 5x2 matrix (no weights required). So I would have to enter the data in 5x2 format (e.g.: x1,y1; x2 y2; x3 y3; x4 y4; x5 y5). How do I sample 500 5x2 matrixes from the 500 x 11 matrix that I have? Note that each row is sufficient to create one 5x2 matrix. Once I obtain 'nout' from each 5x2 matrix I would like to graph it, and overlay all 500 graphs on one plot. How could I do this? Finally, I would like to have a output database where all the 'nout's are listed by 'count' and x variables - a DB of fitted values from slightly different splines for the same x-value. How could I merge 500 'nouts' in an efficient manner? Your help would be greatly appreciated. Many Thanks! Best regards, Arkady Gershteyn
... View more