R - 数据框中包含多个标准的摘要

时间:2017-10-31 13:42:17

标签: r

我有一个名为list_RLM

的模型列表

我正在使用插入包来比较结果。我用过:

res = resamples(list_RLM)

我有摘要:

> summary(res)

Call:
summary.resamples(object = res)

Models: Model1, Model2, Model3 
Number of resamples: 10 

MAE 
       Min.  1st Qu.   Median     Mean  3rd Qu.     Max. NA's
Model1 3.588910 5.218382 6.048223 5.867826 6.641718 7.089557    0
Model2 5.821488 6.083818 6.235782 6.533820 7.092455 7.651828    0
Model3 5.718588 6.373973 7.076648 6.936426 7.471962 7.809910    0

RMSE 
       Min.  1st Qu.   Median     Mean  3rd Qu.      Max. NA's
Model1 4.670845 5.954618 6.839484 6.800493 7.746462  8.310253    0
Model2 7.205834 7.854358 8.670934 8.735472 9.080558 10.906001    0
Model3 6.900938 7.758733 8.578707 8.855764 9.875752 11.116252    0

Rsquared 
        Min.   1st Qu.    Median      Mean   3rd Qu.      Max. NA's
Model1 0.9339040 0.9438636 0.9551666 0.9555496 0.9686839 0.9786888    0
Model2 0.9914923 0.9920507 0.9935229 0.9932357 0.9941703 0.9948047    0
Model3 0.9873668 0.9901259 0.9919001 0.9916127 0.9933167 0.9950883    0

我想要3个数据帧。

一个名为MAE,其中包含以下信息:

       Min.  1st Qu.   Median     Mean  3rd Qu.     Max. NA's
       3.588910 5.218382 6.048223 5.867826 6.641718 7.089557    0
       .821488 6.083818 6.235782 6.533820 7.092455 7.651828    0
       5.718588 6.373973 7.076648 6.936426 7.471962 7.809910    0

RMSERsquared

也是如此

你知道我该怎么办?

我试过帖子:R - convert summary to data.frame

data.frame(unclass(summary(res)), check.names = FALSE, stringsAsFactors = FALSE)

但它给了我以下错误:

Error in summary.resamples(object = res) : 
  could not find function "summary.resamples"

0 个答案:

没有答案