I am looking to generate bootstrap SE for lowess smoothed curves. I realize that not everyone agrees that SE are appropriate for lowess curves, but I want to generate bootstrap SE for lowess anyway, so I can plot lowess fit Y and 95% CI Y across my Xs. In some past stata forum lists, when users have asked about SE for lowess (because the lowess function does not provide SE directly), one answer has been to bootstrap the lowess function. I would like to bootstrap the lowess, but I cannot figure out how. I am stymied by the fact that Stata's built-in lowess function returns no r() or e() matrices that could be plugged into the bootstrap, or manipulated. The only output one gets from lowess, aside from the graph, is the possibility to generate a new variable, the smoothed fit. I'm not facile enough with Stata programming to figure out how to simulate the 1000 or so bootstrap iterations and determine the ci at each point. I have looked at the UCLA page on bootstrapping here:
http://www.ats.ucla.edu/stat/stata/faq/ownboot.htm
for combining bsample in a program, and simulate to call the program, but I cannot figure out how to make the program work for lowess as the estimate.
I would love some help. If it matters, I am using Stata 13.1 on Windows 7 and 8.
Thanks in advance.
-Michael
http://www.ats.ucla.edu/stat/stata/faq/ownboot.htm
for combining bsample in a program, and simulate to call the program, but I cannot figure out how to make the program work for lowess as the estimate.
I would love some help. If it matters, I am using Stata 13.1 on Windows 7 and 8.
Thanks in advance.
-Michael
Comment