MeMoBootR icon indicating copy to clipboard operation
MeMoBootR copied to clipboard

Mediation with Dichotomous Y Variable

Open RaviBot opened this issue 4 years ago • 2 comments

Hello!

First of all, thank you for this amazing package and all of your incredible YouTube videos. I have really learned a lot!

I was doing a mediation with a dichotomous X, dichotomous Y, and a continuous M using the mediation1() function. When it runs I get the error Error in mediation1(y = "SuicideBIN_Text", x = "cp_np", m = "rh_G_postcentral_thickness", : Y should not be a categorical variable. Log regression options are coming soon.

I was wondering if there was an update coming soon for this. Thanks for all your help!

RaviBot avatar May 27 '21 22:05 RaviBot

Yes, on the radar, timeline murky given a few projects I am involved with right now :(

Just regular logistic regression with a binary outcome or something more complex?

doomlab avatar May 29 '21 12:05 doomlab

I was just looking to do regular logistic regression with a binary outcome, binary predictor, continuous mediator, and continuous covariates!

RaviBot avatar May 29 '21 18:05 RaviBot