In this post I will demonstrate in R how to draw correlated random variables from any distributionThe idea is simple. 1. Draw any number of variables from a joint normal distribution. 2. Apply the univariate normal CDF of variables to derive pro...

R news and tutorials contributed by (552) R bloggers

In serveral previous posts I have posted shiny applications which temporarily store data on shiny servers such as hit counters or the survey tool which I created, These do not work in the long term since shiny will restart its servers without war...

It is common for researchers to be concerned about unobserved effects being correlated with observed explanatory variables.For instance, if we were curious about the effect of meditation on emotional stability we may be concerned that there might be so...