A simple bit of code in multiple languages that lets you calculate useful statistics without storing every sample.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
magic_stats/cpp/tests/confirm.r

8 lines
157 B

samples <- read.table("bad_samples.txt")
t.test(samples$V1, samples$V2)
samples <- read.table("samples.txt")
print(samples)
t.test(samples$V1, samples$V2)