mediation icon indicating copy to clipboard operation
mediation copied to clipboard

Could Package "mediate" support multi-categorical treatment?

Open minhengw opened this issue 2 years ago • 2 comments

Could Package "mediate" support multi-categorical treatment?

I could find arguments 'control.value' & 'treat.value' in the function mediate, it seems that the function could support binary treatment. I am not sure whether mediate can support multi-categorical treatment (# groups >= 3) as well. Thank you for your help in advance!

David

minhengw avatar Nov 14 '22 10:11 minhengw

From what I understand, yes. In example 1: Linear Outcome and Mediator Models of mediate function documentation, the categorical treatment demonstrates this. You just need to specify the parameters control.value and treat.value.

YiLIU001 avatar Nov 20 '22 14:11 YiLIU001

Got it, thank you so much!

minhengw avatar Nov 20 '22 17:11 minhengw