Natural feeling domain-specific language for building structural equation models in R for estimation by covariance-based methods (like LISREL/Lavaan) or partial least squares (like SmartPLS)
Thank you very much for spotting this bug in my code. Without the help and support of our community, we would not be able to find and test all possible code. I identified the problem.
The function for calculating the total_effects had some faulty logic.
specifically, the function is as follows:
to calculate total effects, we simply need to multiply the path coefficients matrix with iteself and add the product. This continues until the product of the path coef matrix is equal to zero (no more indirect effects).
In my logic I had used a while() statement which said to continue calculating the product of the path coef matrix and adding it up until the paths matrix sums to a non-positive. This makes sense because the product of a number with itself cannot be negative.
However I did not consider that the initial starting point could sum to a non-neg. Thus, the function was never executing.
Nevertheless, you have brought this glitch to our attention and I can now deploy the bug-fix in our next version. In the meantime, you can download the bugfix version (temp) using:
Thank you very much for spotting this bug in my code. Without the help and support of our community, we would not be able to find and test all possible code. I identified the problem. The function for calculating the total_effects had some faulty logic. specifically, the function is as follows:
to calculate total effects, we simply need to multiply the path coefficients matrix with iteself and add the product. This continues until the product of the path coef matrix is equal to zero (no more indirect effects). In my logic I had used a while() statement which said to continue calculating the product of the path coef matrix and adding it up until the paths matrix sums to a non-positive. This makes sense because the product of a number with itself cannot be negative. However I did not consider that the initial starting point could sum to a non-neg. Thus, the function was never executing.
My fix is as followS:
Nevertheless, you have brought this glitch to our attention and I can now deploy the bug-fix in our next version. In the meantime, you can download the bugfix version (temp) using: