Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
素食者中的R cca和predict.cca_R_Prediction_Vegan - Fatal编程技术网

素食者中的R cca和predict.cca

素食者中的R cca和predict.cca,r,prediction,vegan,R,Prediction,Vegan,我有一个物种表计数数据,它由每个样本行的物种离散计数列组成。样本分为两类:控制和应力,这两类在设计文件中由一列表示:条件。 我的想法是:删除10个样本测试,对数据-10个样本序列进行CCA,并使用CCA预测10个样本的坐标 train.cca事实上,素食主义者只返回预测中一种成分cca或CA的分数。因此,如果希望从多个组件获得结果,必须分别获取组件并将其与cbind组合,就像在CCA组件只有一个轴的情况下: ax1 <- predict(object=train.cca, model="C

我有一个物种表计数数据,它由每个样本行的物种离散计数列组成。样本分为两类:控制和应力,这两类在设计文件中由一列表示:条件。 我的想法是:删除10个样本测试,对数据-10个样本序列进行CCA,并使用CCA预测10个样本的坐标

train.cca事实上,素食主义者只返回预测中一种成分cca或CA的分数。因此,如果希望从多个组件获得结果,必须分别获取组件并将其与cbind组合,就像在CCA组件只有一个轴的情况下:

ax1 <- predict(object=train.cca, model="CCA", type="wa", newdata=test)
ax2 <- predict(object=train.cca, model="CA", rank=1, type="wa", newdata=test)
ax12 <- cbind(ax1,ax2)
points(ax12) # to add points to an existing grapch