compareGroups
compareGroups copied to clipboard
compareGroups with case weights
Dear Isaac,
thank you and all the authors for this absolutely great package!
I have a question concerning the use of weights: In my daily work with survey data I use caseweights (e.g. nonresponse weights, calibrations weights etc.). I did not find a way to use case weights in compareGroups - is this possible yet? I skimmed through the reference and searched for "weight" could not find it. Using weights would make compareGroups absolutely perfect for this kind of work - because of the flexibility and the possibilities to join tables (cbind), export Markdown and use kableExtra for styling.
(Remark: I found compareGroups looking for a function that displays unweighted and weighted descriptive statistics side by side to show the effect of the weights. It seems that doing this via compareGroups and cbind the unweighted and the weighted version would perfectly achieve this).
Thanks again for compareGroups! Best, G
Thank you for your kind words. The compareGrups package is meant to performed simple (i.e. non-weighted) descriptive analyses, and unfortunately it does not support the kind of analyses you need.
Regards,
Isaac.
Hi Isaac, thanks a lot for your message and for adding the enhancement label, which gives me hope ;-) Best, G
This would be an excellent addition to the package. :)