我在这里找到了这段代码,用于 OLR 的可视化。但是,我正在使用 GSS 调查,但不知道如何创建此处使用的“权重”表。
ordlogit1 <- polr(affectpol_o ~
empconc +
empdist +
emppers +
empfant +
#pidext +
ideoext +
news +
dem +
educ +
age +
male +
white +
inc3miss_c,
data = table1, method = c("logistic"), Hess = T,
weights = table1$weight_group)
我指的是 weights = table1$weight_group
:我如何创建这个表?我有调查本身的权重,但不知道语法应该是什么。
提前致谢。
A.西斯金德