Description Usage Arguments Value Examples

`num_compare`

gives details about the distribution of a numeric variable across subsets of the dataset

1 | ```
num_compare(y, grp, plot = c("density", "boxplot", "none"))
``` |

`y` |
A numerical variable |

`grp` |
A categorical variable |

`plot` |
Type of plot to produce |

Returns a list including (1) group-wise summary statistics, (2) ANOVA decomposition, (3) eta-squared effect size, and (4) ggplot2 object, if requested.

1 2 3 | ```
v1 = rbinom(n=50, size=1, p=0.5)
v2 = rnorm(50)
num_compare(y=v2, grp=v1, plot='density')
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.