R Documentation |
Prints contents of the first input x
in a human-friendly way, see
Details for more information.
## S3 method for class 'trial_spec'
print(x, prob_digits = 3, ...)
## S3 method for class 'trial_result'
print(x, prob_digits = 3, ...)
## S3 method for class 'trial_performance'
print(x, digits = 3, ...)
## S3 method for class 'trial_results'
print(
x,
select_strategy = "control if available",
select_last_arm = FALSE,
select_preferences = NULL,
te_comp = NULL,
raw_ests = FALSE,
final_ests = NULL,
restrict = NULL,
digits = 1,
cores = NULL,
...
)
## S3 method for class 'trial_results_summary'
print(x, digits = 1, ...)
## S3 method for class 'trial_calibration'
print(x, ...)
x |
object to print, see Details. |
prob_digits |
single integer (default is |
... |
additional arguments, not used. |
digits |
single integer, the number of digits used when printing
the numeric results. Default is |
select_strategy |
single character string. If a trial was not stopped
due to superiority (or had only 1 arm remaining, if
|
select_last_arm |
single logical, defaults to |
select_preferences |
character vector specifying a number of arms used
for selection if one of the |
te_comp |
character string, treatment-effect comparator. Can be either
|
raw_ests |
single logical. If |
final_ests |
single logical. If |
restrict |
single character string or |
cores |
|
The behaviour depends on the class of x
:
trial_spec
: prints a trial specification setup by
setup_trial()
, setup_trial_binom()
or setup_trial_norm()
.
trial_result
: prints the results of a single trial simulated by
run_trial()
. More details are saved in the trial_result
object and thus
printed if the sparse
argument in run_trial()
or run_trials()
is set to
FALSE
; if TRUE
, fewer details are printed, but the omitted details are
available by printing the trial_spec
object created by setup_trial()
,
setup_trial_binom()
or setup_trial_norm()
.
trial_results
: prints the results of multiple simulations
generated using run_trials()
. Further documentation on how multiple trials
are summarised before printing can be found in the summary()
function
documentation.
trial_results_summary
: print method for summary of multiple simulations
of the same trial specification, generated by using the summary()
function
on an object generated by run_trials()
.
Invisibly returns x
.
print(trial_spec)
: Trial specification
print(trial_result)
: Single trial result
print(trial_performance)
: Trial performance metrics
print(trial_results)
: Multiple trial results
print(trial_results_summary)
: Summary of multiple trial results
print(trial_calibration)
: Trial calibration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.