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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to