You are here |
zevross.com | ||
| | | |
timogrossenbacher.ch
|
|
| | | | This post guides you through creating a beautiful, bivariate thematic map using solely two R packages, ggplot2 and sf. | |
| | | |
fronkonstin.com
|
|
| | | | The heart has its reasons which reason knows not (Blaise Pascal) You only need two functions to draw a heart mathematically. The upper part is generated by (1-(|x|-1)2)1/2 and the lower one by acos(1-|x|)-PI. Here is how this heart is: Whats the area of this heart? It's easy: integrating heart.up(x)-heart.dw(x) between -2 and 2 and | |
| | | |
juliasilge.com
|
|
| | | | A data science blog | |
| | | |
www.rdatagen.net
|
|
| | Simulation can be super helpful for estimating power or sample size requirements when the study design is complex. This approach has some advantages over an analytic one (i.e.one based on a formula), particularly the flexibility it affords in setting up the specific assumptions in the planned study, such as time trends, patterns of missingness, or effects of different levels of clustering. A downside is certainly the complexity of writing the code as well as the computation time, which can be a bit painful. My goal here is to show that at least writing the code need not be overwhelming. |