与完整的成对分析相反,我想针对多个(400k +)观测值针对1个观测值计算Gower相似度。原因是我对新观察与现有示例的相似程度感兴趣,以便找到相似的历史案例。
data(agriculture)
#This is a pairwise analysis
agriculture_data = agriculture[2:12,]
dagr = daisy(agriculture_data, metric = "gower", stand = FALSE)
#How can I do a single vs many analysis?
agriculture_newobs = agriculture[1,]
dagr_newobs = daisy(???)