R Package designed to run independant sample t-test or paired t-test, a number of times, with the data being segmented by minimum number of participants needed to reach significance
This function runs iterative randomized replication t-tests on a dataset based on base-n value
@param g1 Group 1 @param g2 Group 2 @param shuffle number of times to replicate data, defaults to 50 @param alpha value of alpha, defaults to .05 @param paired Boolean to run a paired-sample t-test, defaults to FALSE @param csvFileName Optional parameter to save results to .csv @keywords shuffle, t-test
@examples shuffled_ttest(Group1, Group2, shuffle=500, alpha=.05) shuffled_ttest(data$Var1, data$Var2, shuflled=10000, alpha=.01, paired=TRUE, savefile_1)
This function finds the base n based on smallest number of participants (>10) needed for significance. @param data_set Takes in a data.frame @param alpha Alpha criteria, defaults to .05 @param paired Boolean to run Paired-Sample t-Test, defaults to FALSE @keywords base-n
@examples find_base_n(dataset_1, .05, TRUE) find_base_n(dataset_2, .001)
This function runs a shuffling t.test based on power criteria
@param g1 Group 1 @param g2 Group 2 @param shuffle number of times to replicate data, defaults to 50; @param alpha value of alpha, defaults to .05; @param power value of power criteria, defaults to .85; @param paired Boolean to run a paired-sample t-test, defaults to FALSE; @param csvFileName Optional parameter to save results to .csv; @keywords shuffle, t-test, power
@examples shuffled_ttest(g1, g2, 500, alpha=.05, power=.9) shuffled_ttest(group1, group2, 10000, alpha=.01, paired=TRUE, paired_test1)
This function finds base-n based on smallest number of participants (>10) needed to reach power >= .95
@param g1 Group 1; @param g2 Group 2; @param alpha alpha value for testing, defaults to .05; @param power pwr criteria, defaults to .95; @param paired Boolean to run Paired-Sample t-Test, defaults to FALSE; @keywords base-n, pwr
@examples pwr_base_n(group1, group2, power=.85, paired.sample=TRUE) pwr_base_n(dataset[,1] dataset[,2], alpha=.05, power=.95)
This function incrementally increases the number of participants and does t.test for each
@param x Group 1; @param y Group 2; @param alpha alpha value for testing, defaults to .05; @param paired Boolean to run Paired-Sample t-Test, defaults to FALSE; @keywords iterative, t.test, p trend
@examples iterative.ttest(group1, group2, alpha=.01 paired=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.