compareGroups icon indicating copy to clipboard operation
compareGroups copied to clipboard

compareGroups with case weights

Open konstruktur opened this issue 5 years ago • 3 comments

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

konstruktur avatar Jan 04 '20 20:01 konstruktur

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.

isubirana avatar May 25 '20 08:05 isubirana

Hi Isaac, thanks a lot for your message and for adding the enhancement label, which gives me hope ;-) Best, G

konstruktur avatar May 27 '20 10:05 konstruktur

This would be an excellent addition to the package. :)

gregorkschroeder avatar May 06 '21 18:05 gregorkschroeder