df_1 <- data.frame(v1 = c(1, 2, -100), v2 = c(40, 5, 6))
df_2 <- data.frame(v1 = c(7, 6, 5), v2 = c(4, 3, 2))
differences <- create_difference_vector(df_2, df_1)
# using singular increase
get_results_vector(hypothesis = 'increase', differences = differences)
# using 'different' hypothesis and a pre post scenario
get_results_vector(hypothesis = c('increase', 'different'),
differences = differences, grp_a = df_1, grp_b = df_2, phi_0 = 0.05)
Run the code above in your browser using DataLab