Dear SAS-community, I would like to sample from an estimated kernel density. So essentially I have observations on some key variables, for which i generate estimated kernel densities. This has succeeded so far. The next step is to redraw new samples from the estimated kernel densities. Does anyone have a good idea on how to do this? This following example from stack exchange shows how to do it in R (see "best answer"): https://stats.stackexchange.com/questions/321542/how-can-i-draw-a-value-randomly-from-a-kernel-density-estimate Using the code i generate KDE: proc KDE data=dat;
univar variableA / out=EstimatedKD;
run; i obtain the relevant levels using "out".
... View more