expss软件包可以使用加权数据处理多个答案问题吗?

问题描述 投票:2回答:1

expss软件包可以解决此链接中提出的问题吗?,它与数据集中具有加权变量的多重回答问题有关

How to use the R survey package to analyze multiple response questions in a weighted sample?

假设我们有这个数据集:

demo <- tribble(
~dummy1, ~dummy2, ~dummy3, ~survey_weight,
      1,       0,       0,          1.5,
      1,       1,       0,          1.5,
      1,       1,       1,           .5,
      0,       1,       1,          1.5,
      1,       1,       1,           .5,
      0,       0,       1,           .5,
)

我需要根据回答问题的总受访者而不是总答复来计算百分比

r weighted multiple-choice expss
1个回答
0
投票

是的,这很容易:

© www.soinside.com 2019 - 2024. All rights reserved.