Skip to contents

[Stable]

type_of_test returns stat_func being used for GeoLiftPower; GeoLiftPowerFinder & GeoLift.

Usage

type_of_test(side_of_test = "two_sided", alternative_hypothesis = NULL)

Arguments

side_of_test

A string indicating whether confidence will be determined using a one sided or a two sided test.

"two_sided":

The test statistic is the sum of all treatment effects, i.e. sum(abs(x)). Defualt.

"one_sided":

One-sided test against positive or negaative effects i.e. If the effect being applied is negative, then defaults to -sum(x). H0: ES >= 0; HA: ES < 0. If the effect being applied is positive, then defaults to sum(x). H0: ES <= 0; HA: ES > 0.

alternative_hypothesis

A string indicating what is the alternative hypothesis being tested. Defaults to NULL.

"negative":

H0: ES >= 0; HA: ES < 0.

"positive":

H0: ES <= 0; HA: ES > 0.

Value

Statistical function being used to sum ATT effects over all treatment periods.

Examples

stat_func <- type_of_test(side_of_test = "one_sided", alternative_hypothesis = "positive")
stat_func(c(-1, 2, 3))
#> [1] 4