plot.bmbstats_RCT_analysis: S3 method for plotting 'RCT_analysis' results

Description Usage Arguments Examples

View source: R/rct-analysis-S3.R

Description

S3 method for plotting RCT_analysis results

Usage

1
2
## S3 method for class 'bmbstats_RCT_analysis'
plot(x, type = "boot", ...)

Arguments

x

Object of class bmbstats_RCT_analysis

type

Type of plot. Options are "boot", "control-pre-post", "treatment-pre-post", "control-change", "treatment-change", "change", "control-paired-change", "treatment-paired-change", "change-distribution", "effect-distribution", "adjusted-treatment-responses", and "treatment-responses". Default is "boot"

...

Extra arguments. Use plot_control to control plotting style

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
set.seed(1666)

data("vertical_jump_data")

rct_model <- RCT_analysis(
  vertical_jump_data,
  group = "Group",
  treatment_label = "Treatment",
  control_label = "Control",
  pre_test = "Pre-test",
  post_test = "Post-test",
  control = model_control(boot_type = "perc", boot_samples = 500)
)

rct_model

plot(rct_model)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.