doomlab / MeMoBootR

A package for mediation, moderation, and bootstrapped indirect effects
MIT License
21 stars 7 forks source link

Mediation with Dichotomous Y Variable #5

Open RaviBot opened 3 years ago

RaviBot commented 3 years ago

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!

doomlab commented 3 years ago

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?

RaviBot commented 3 years ago

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