Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.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中有序数据的联合分析_R_Choice_Mlogit - Fatal编程技术网

R中有序数据的联合分析

R中有序数据的联合分析,r,choice,mlogit,R,Choice,Mlogit,我想把我用正交设计做的一个实验的R和分析结合起来。 我为联合分析找到的代码在每个选项的属性旁边都有一个评级列。 这是我用来实现conjoint的代码 conjoint1 <- read.csv(file="1st_experiment_sheet copy.csv", header=TRUE, sep=",") ## putting writing down the levels for each attribute. first_attirbutes <- c("compelet

我想把我用正交设计做的一个实验的R和分析结合起来。 我为联合分析找到的代码在每个选项的属性旁边都有一个评级列。 这是我用来实现conjoint的代码

conjoint1 <- read.csv(file="1st_experiment_sheet copy.csv", header=TRUE, sep=",")
## putting writing down the levels for each attribute. 
first_attirbutes <- c("compelete wp","Normal wp","32GB","128GB","4.7","5.5","With fp","No fp", "4K","FullHD","Sim free","Sim locked")
first_attirbutes.df <- data.frame(first_attirbutes)
conj1.result <- lm(rating ~ water.proof+ memory_size +screen_size +finger_print +Camera +SIM, data = conjoint1)
summary(conj1.result)

##get utilites for each attirbutes
caModel(conjoint1[,7],conjoint1[,1:6])

Conjoint(conjoint1[,7],conjoint1[,1:6],first_attirbutes.df)
conjoint1