Plotting multiple mediation

This posts on multiple mediation on lavaan supplements the two previous ones (1 – introducing multiple mediator analysis with lavaan and 2 – showing an example analysis) by describing how to process lavaan’s output graphically. I discovered the handy package semPlot and I am very positive about it. I will make the example as reproducible as possible, so that each step can be repeated. Also, I am going to try to provide more explanation about the R commands I used because a friend pointed out that the description of the steps was sometimes a bit dry and abstract.
Continue reading “Plotting multiple mediation”

Plotting multiple mediation

Streamgraphs in base::R [e.II]

Until recently I did not have a practical application in which to use streamgraphs. In fact, I still find the visualisation complex to understand, abstract and a bit too artistic. While I recognise that the strength of streamgraphs is the display of all the time series’ values into one (possibly interactive) plot, the amount of data displayed is massive, with many streams and even more data points. Because of the amount of data displayed Continue reading “Streamgraphs in base::R [e.II]”

Streamgraphs in base::R [e.II]

A simple fork example timed with chrono

I always wanted to experiment with parallel computing and multi threading. However, when and how to use parallel computing has always been a bit difficult to conceptualize for me. Until I discovered forking. Here I will describe a simple implementation of fork using the chrono Time c++ library to time the forked processes.

Continue reading “A simple fork example timed with chrono”

A simple fork example timed with chrono