R/indirect_effect_or.R

indirect_effect_or <-
function(x,y,z,w,t)
{ ((1+x)^(-1)*(1+w)^(-1)+(1+x*z)^(-1)*(1+w)^(-1)*w)*
(1-(1+x)^(-1)*(1+w)^(-1)-(1+x*z)^(-1)*(1+w)^(-1)*w)^(-1)*
((1+x)^(-1)*x*(1+w*t)^(-1)+ (1+x*z)^(-1)*x*z*(1+w*t)^(-1)*w*t)*
(1-(1+x)^(-1)*x*(1+w*t)^(-1)- (1+x*z)^(-1)*x*z*(1+w*t)^(-1)*w*t)^(-1)}

Try the efflog package in your browser

Any scripts or data that you put into this service are public.

efflog documentation built on May 2, 2019, 8:17 a.m.