print function for da objects
Usage
# S3 method for da
print(x, n = 10, ...)
Arguments
- x
A S3 obj of class "da", output from
pvda::da()
.- n
Control the number of rows to print.
- ...
For passing additional parameters to extended classes.
Examples
da_1 <-
tiny_dataset |>
da()
print(da_1)
#> Your console width is too narrow to support coloured printouts, reverting to non-coloured output.
#> # A tibble: 107 × 23
#> drug event obs exp_rrr ic2.5 ic ic97.5 exp_prr prr2.5 prr prr97.5
#> <chr> <chr> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 Drug_A Event_1 4 1.2 -0.34 1.4 2.5 0.63 1.6 6.4 26.
#> 2 Drug_B Event_60 1 0.01 -2.2 1.6 3.2 0 NA NA NA
#> 3 Drug_G Event_80 1 0.01 -2.2 1.6 3.2 0 NA NA NA
#> 4 Drug_H Event_57 1 0.01 -2.2 1.6 3.2 0 NA NA NA
#> 5 Drug_C Event_52 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> 6 Drug_C Event_92 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> 7 Drug_D Event_20 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> 8 Drug_D Event_25 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> 9 Drug_I Event_37 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> 10 Drug_I Event_97 1 0.02 -2.3 1.5 3.2 0 NA NA NA
#> # ℹ 97 more rows
#> # ℹ 12 more variables: exp_ror <dbl>, ror2.5 <dbl>, ror <dbl>, ror97.5 <dbl>,
#> # n_drug <int>, n_event <int>, n_tot <int>, n_event_prr <int>,
#> # n_tot_prr <int>, b <int>, c <int>, d <int>
#> (Drug-event-combinations sorted according to lower bound of ic)
#> # Printing x[['da_df']]