1

After using loess.smooth function in R on bootstrapped data, the bootstrapped dataset (n = 134560) reduced to (n = 50) observations. is there any way to replicate this effect in SAS?

I am not very much familier with PROC LOESS. I tried a few attempts but did not understood how can I replicate this effect (effect = final dataset of reduced n).

The reason for this question is: I find bootstrapping in SAS much easier, but not able to make a plot-able dataset in SAS.

Any help or direction in this regard is much appreciated. Thanks.

4

1 回答 1

0

可能有更好的解决方案,但至少:

首先,运行 PROC LOESS 并获取输出数据集。

proc loess data=sashelp.enso;
   model pressure = year /details(outputstatistics);
   output out=loess;
run;

现在,运行 PROC SURVEYSELECT 以从中随机提取,或者甚至只从该结果数据集中获取每第 N 行。我想 r 的loess函数做了类似的事情,尽管它可能比这更智能(例如选择黄土曲线的局部最小值/最大值)。

于 2014-07-31T16:38:04.800 回答