如何使用“crossstable”包的重量对于 R
crosstable 包为我提供了在由调查答案组成的数据集中进行一些探索性工作所需的信息。但我需要对交叉制表进行加权,以获得我正在研究的人群的代表性结果。我有什么想法可以在这个包中使用权重吗?
到目前为止,我已经使用“调查”包来做到这一点,但它缺乏演示工具来获取准备发布的表格。
谢谢。
The crosstable package give me exactly what I need to do some exploratory work in a data set composed of answers to a survey. But I need to weight the crosstabulation to get a representative results of the population I'm studying. Any ideas how I could use weights with this package?
So far I have used the "survey" package to do that, but it's lacking presentation tool to get publication ready tables.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是 crosstable 包的开发者,不幸的是它还不支持权重。
我希望有一天能将此作为一项功能实现,因此您绝对应该在 GitHub。
由于我自己从未做过加权描述,因此请添加您的用例的简化版本,以便我可以做出对每个人都有用的东西。
I'm the dev of the
crosstable
package and it is unfortunately not supporting weights yet.I would love to implement this as a feature one day, so you should definitely open a Feature Request on GitHub.
As I've never had to do a weighted description myself, please add a simplified version of your use case so that I can make something useful to everyone.