mediation icon indicating copy to clipboard operation
mediation copied to clipboard

Multiple-trial binomial mediator: an inconsistency?

Open vbrazao opened this issue 1 year ago • 0 comments

I'm running two mediations on the same data, once using prior (sampling) weights when fitting the models (through the survey package), and once without those prior weights (just using the glm() function). My outcome is binary. My mediator is a proportion out of 3, so I also pass 3 as the weights argument (or rather, the name of a column that is equal to 3 for every subject). When using the models fit with survey:svyglm() inside mediate(), there is no issue; however, when using the glm() models, mediate() complains that "weights on outcome and mediator models not identical".

After checking the documentation, I see that you're not supposed to use a multiple-trial binomial mediator, as that is not implemented yet. My question is, why does it work when the models are fit through survey::svyglm()? And can I trust those results at all?

vbrazao avatar Aug 08 '23 15:08 vbrazao

+1 !

olemaire avatar Apr 11 '13 16:04 olemaire

Yes I do. On my list.

netaustin avatar Sep 18 '13 12:09 netaustin

Hi, I have enabled TaskBoard module, created a column named Working and added status - In Progress, set Max Tasks to 3. When I am on My TaskBoard tab I see more than 3 tickets in Working column that has In Progress status. Am I missing something? Thanks

ruby-adictive avatar Dec 23 '15 05:12 ruby-adictive