[R] Fit model to data and use model for data generation

From: Benjamin Otto <b.otto_at_uke.uni-hamburg.de>
Date: Wed 24 Jan 2007 - 16:34:45 GMT


Suppose I have a set of values x and I want to calculate the distribution of the data. Ususally I would use the "density" command. Now, can I use the resulting "density-object" model to generate a number of new values which have the same distribution? Or do I have to use some different function?



Benjamin Otto
Universitaetsklinikum Eppendorf Hamburg
Institut fuer Klinische Chemie
Martinistrasse 52
20246 Hamburg

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Jan 25 16:16:29 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 05:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.