[R] sample data from density created by splines

mahdiyeh mahdiyeh at zworg.com
Fri Aug 14 16:24:30 CEST 2009


How I can create some sample data from a density in the form:

f(x)=sum(a(j)M(j)),

in which M(j) is the B-spline basis function. In fact my density
function is a linear combination of B-splines. (Is there any other way
than using the well-known and general uniform distribution method?)


--
Free e-mail accounts at http://zworg.com




More information about the R-help mailing list