Skip to contents

Alongside a plot, it can also be useful to extract the numbers behind the "tetris plot".

Usage

summary(x, type = "marginal", ...)

# S3 method for tetris_analysis
summary(x, type = "marginal", ...)

Arguments

x

an output of an analysis_ function of class tetris_analysis

type

a character input of either "marginal" (default) or "joint"

...

Currently unused.

Value

A tibble with appended joint or marginal probabilities

Details

The summary method essentially derives two types of empirical results associated with the generated bootstrap analyses

Examples

data(iswr_stroke)
iswr_stroke %>%
  bootstrap_data(10, seed = 1234) %>%
  analyse_univariate(response = "dead12",
                     vars = c("Gender", "Age", "Diagnosis", "Coma",
                              "Diabetes", "MI", "Hypertension"),
                     family = "binomial") %>% 
  summary()
#> # A tibble: 7 × 2
#>   vars          prop
#>   <chr>        <dbl>
#> 1 Age            1  
#> 2 Coma           0.7
#> 3 Diabetes       0.3
#> 4 Diagnosis      0.1
#> 5 Gender         0.9
#> 6 Hypertension   0.4
#> 7 MI             0.9