density(). There are some good examples for this function under example(density). The result is an object with class "density" that you can plot directly using plot()
Francisco
PS: I reccomend you to read the posting guide http://lib.stat.cmu.edu/R/CRAN/ so you can get better answers
From: Yong Wang <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [R] How to plot PDF which is in the form of orthogonal polynomial Date: Sat, 30 Oct 2004 11:19:16 -0500 (CDT)
Dear all
using the orthogonal polymial on a set of data, I get an approximate density which basically is in the form: exp(-polynomial),
as you know, the parameters are the converged coeeficients.
obviously, It is hard, if not impossible, to use the inverse CDF method to get a sample and then plot density. then how can I plot the approximated density in order to have a graphical comparision with the real data's histogram.
any hint is appreciated
thanks
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html