print.simulab_sim: Print a simulation result

View source: R/result.R

print.simulab_simR Documentation

Print a simulation result

Description

Prints a one-line header giving the simulation type and the full dimensions, then at most the first 10 rows of the primary data, then a count of the rows not shown. The table of generating values follows under the heading Truth: the first of coefficients, fixed_effects, parameters, transition, transitions, true_transitions, definitions, probabilities, survival_definitions and settings that the result stores, again at most 10 rows. A last line names the other stored tables, which as.data.frame() returns with what.

Usage

## S3 method for class 'simulab_sim'
print(x, ...)

Arguments

x

A simulab_sim object.

...

Arguments passed to the base data-frame print method.

Value

x, invisibly.

Examples

result <- simulate_ttest(n_a = 30, n_b = 30, mean_a = 0, mean_b = 0.5, seed = 1)
print(result)

simulab documentation built on Oct. 15, 2026, 5:08 p.m.