I'm currently working with a data set I made. I am trying to make a histogram of the number of medical procedures on the x-axis (patient had 1 removed, 2 removed etc..) and the frequency on the y axis. I would like for an exponential line to be superimposed on the data set along with 95% confidence intervals. With the code I currently have, there is a line superimposed on the histogram but it's not fit very well. Please let me know if you know a way to graph an exponential line with confidence intervals. Thank you!
*More generally-Does anyone know how to make an exponential frequency (count) function with 95% CIs.
I don't think I have ever seen a density curve with 95% confidence intervals. I'm pretty sure that PROC UNIVARIATE will not produce such confidence intervals.
I suppose you could do a bootstrap or jackknife and obtain these confidence intervals somehow, but that is beyond my wage grade — even in that case, I'm not convinced that a jackknife or bootstrap will actually work here. Those will provide estimates of variability for point estimates; I am not aware of whether or not they provide confidence intervals for a density curve.
In fact, can you please show me a reference where someone has computed confidence intervals for density curves?
The exponential distribution assumes a continuous variable. It sounds like you have a discrete variable because the X axis is n=1,2,3,.... If so, the exponential model might not be appropriate.
The discrete counterpart of the exponential distribution is the geometric distribution. However, the geometric model assumes independent Bernoulli trials, and it is not clear that your data fits that model. Can you post your data? Perhaps this is better treated as a regression problem.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.