我X在数据框中有一列,我需要找到累积标准偏差.
X Cumulative.SD
1 -
4 2.12
5 2.08
6 2.16
9 2.91
Run Code Online (Sandbox Code Playgroud) 我有两列 X1 ,X2 。我想找到 X1 下的面积和 X2 下的面积。
X = c(1,2,3,4,5)
Y1 = c(2,3,4,2,3)
Y2 = c(6,6,6,6,6)
plot(X,Y1) #Need to get area under this curve i.e auc(Y1)
plot(X,Y2) #Need to get area under this curve i.e auc(Y2)
Run Code Online (Sandbox Code Playgroud)
我需要这个,以便我需要通过采用比率 AUC(Y1)/AUC(Y2) 来比较两个区域,即 Y1 和 Y2
我需要在每个点都有可交换的区域。