Simulate sample size, mean and SD for data

tg
Sun Jan 31 12:03:12 2016

Shiny widget for data simulation

This widget is simulating sample size, mean and SD in two datasets. It perform a t-test to indicate if differences can be expected with the choosen values. This is an important exercise when planning studies. It contain 5 sliders:

  • Sample size (equal for both control and test)
  • Control mean
  • Control SD
  • Test mean
  • Test SD

The principle is demonstrated here using ggplot:

plot of chunk unnamed-chunk-1


    Welch Two Sample t-test

data:  control and test
t = -163.0824, df = 988.888, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -101.87427  -99.45172
sample estimates:
mean of x mean of y 
 100.0619  200.7249 

Here is a screenshot of the actual widget:

Here is a link to the actual widget: