Yong Wang
2004-Oct-30 16:19 UTC
[R] How to plot PDF which is in the form of orthogonal polynomial
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
F Z
2004-Oct-31 00:18 UTC
[R] How to plot PDF which is in the form of orthogonal polynomial
I am not sure that I understand very well what you want to do but you might want to try 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 <wang at galton.uchicago.edu> >To: r-help-request at stat.math.ethz.ch >CC: r-help at stat.math.ethz.ch >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 > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! >http://www.R-project.org/posting-guide.html
Yong Wang
2004-Nov-01 20:43 UTC
[R] How to plot PDF which is in the form of orthogonal polynomial
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
Seemingly Similar Threads
- unequally spaced factor levels orthogonal polynomial contrasts coefficients trend analysis
- ordinary polynomial coefficients from orthogonal polynomials?
- Orthogonal polynomial contrasts
- Orthogonal Polynomial Regression Parameter Estimation
- Assessing standard errors of polynomial contrasts