conclude() is the terminal step of the pipeline. It resolves the
method variant, runs the implementation, and returns an htest_spec
object.
Arguments
- .x
A
test_lazyobject produced byprepare_test()(optionally followed byvia()).- ...
Currently unused.
Examples
sleep |>
define_model(x_by(extra, group)) |>
prepare_test(TTEST) |>
conclude()
#>
#> == Model =======================================================================
#>
#> Model ID : x_by
#> Args : extra | group
#> x_vars : 1
#> by_vars : 1
#>
#> == T-Test ======================================================================
#>
#> -- Summary ---------------------------------------------------------------------
#>
#> ─────────────────────────────────
#> groups diff t-stat pval
#> ─────────────────────────────────
#> group -1.580 -1.861 0.079
#> ─────────────────────────────────
#>
#>
#> -- Confidence Interval ---------------------------------------------------------
#>
#> ──────────────────────────────
#> groups lower_95 upper_95
#> ──────────────────────────────
#> group -3.365 0.205
#> ──────────────────────────────
#>
#>
sleep |>
define_model(x_by(extra, group)) |>
prepare_test(TTEST) |>
via("boot", n = 2000) |>
conclude()
#>
#> == Model =======================================================================
#>
#> Model ID : x_by
#> Args : extra | group
#> x_vars : 1
#> by_vars : 1
#>
#> == T-Test · boot ===============================================================
#>
#> ============================== Bootstrapped T-test =============================
#>
#>
#> -- Summary ---------------------------------------------------------------------
#>
#> Warning: running command 'tput cols' had status 2
#> ---------------------------------
#> CI : [-3.1605, -0.0598]
#> n_reps : 2000
#> ---------------------------------
#>
#>