nTrials必须更大...联合设计问题

问题描述

我正在尝试使用R创建一张联合卡片列表。

我按照教授的介绍,使用了自己的数据集,但是我坚持这个问题,我不知道。

library(conjoint)
experiment<-expand.grid(
  ServiceRange = c("RA","Active","Passive","Basic"),IdentProce = c("high","mid","low"),Fee = c(1000,500,100),Firm = c("KorFin","KorComp","KorStrt","ForComp")
) 
print(experiment)

design=caFactorialDesign(data=experiment,type="orthogonal")
print(design)

在“设计”行,我不断收到以下错误消息:

Error in optFederov(~.,data,nTrials = i,approximate = FALSE,nRepeats = 50) :    
nTrials must not be greater than the number of rows in data

我该如何解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)