联合分析Conjoint analysis案例(附有R语言代码和数据)数据格式dta格式
代码附有详细解释和说明
代码示例如下:
#加载库,用于conjoint analysis
#加载库,用于读取stata文件
library(readstata13)
library(ggplot2)
library(dplyr)
#读取数据
data <- read.dta13("conjoint_ncse.dta")
#设定因变量和自变量
model <- win ~ male+ccp+eliteuniv+postgrad+prize+workexp+fatherjob