Group comparison in R

A free-form R notebook running on WebR. The kernel keeps its state between cells, and R prints each result on its own, so you can just type an expression and see it. Press Ctrl/Cmd + Enter to run a cell. Change a number and run it again.

Read ten measurements of a gene, five untreated and five treated.

[ ]
Loading editor…

Average within each group. Treated looks higher, but is it beyond the noise?

[ ]
Loading editor…

A t-test answers that. Read the p-value it prints.

[ ]
Loading editor…

And a boxplot to show it.

[ ]
Loading editor…