loess

Loess Fit and Resulting Equation

坚强是说给别人听的谎言 提交于 2019-11-26 23:16:24
问题 I'm a developer up in Portland, OR. I'm wondering if anyone can assist: I'm working on Loess fit models using R, once I have the fit accomplished, I'm looking to back-out the equation of the fitted non-linear curve, wondering if there is a way to determine this equation in R? I've been looking but can't find any literature. For me, the graph of the function is great, but without the equation of the graph, I'm kinda dead in the water. 回答1: Loess doesn't give you an equation [1]. If you just

Fill region between two loess-smoothed lines in R with ggplot

情到浓时终转凉″ 提交于 2019-11-26 08:25:18
问题 I\'d like to know how to fill the area between to loess-smoothed lines in ggplot. The following data frame is used for the pictures: x y ymin ymax grp ydiff 1 1 3.285614 3.285614 10.14177 min 6.8561586 2 1 10.141773 3.285614 10.14177 max 6.8561586 3 2 5.061879 5.061879 11.24462 min 6.1827368 4 2 11.244615 5.061879 11.24462 max 6.1827368 5 3 8.614408 8.614408 13.45030 min 4.8358931 6 3 13.450301 8.614408 13.45030 max 4.8358931 7 4 6.838143 6.838143 12.34746 min 5.5093150 8 4 12.347458 6.838143