<div dir="ltr">Hi,<div><br></div><div>This means you have different sets of missing values between your mediator and outcome models. Either fill in those missing values with their actual values, or set dropobs = TRUE as described in the help file for mediate. ?mediate</div><div>Our vignette published in the Journal of Statistical Software also describes an imputation approach to this issue.</div><div>best,</div><div>Dustin</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 29, 2015 at 9:37 AM <<a href="mailto:jyoo32@wisc.edu">jyoo32@wisc.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
as I ran the mediation analysis using mediate package, I got this error msg "number of observations do not match between mediator and outcome models”. Do you know how to fix this problem? Your answer would be greatly appreciated!<br>
_______________________________________________<br>
Mediation-information mailing list<br>
<a href="mailto:Mediation-information@lists.r-forge.r-project.org" target="_blank">Mediation-information@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/mediation-information" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/mediation-information</a><br>
</blockquote></div>