simulate_pp_data: simulate_pp_data

Description Usage Arguments

View source: R/simulate_pp_data.R

Description

simulate_pp_data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
simulate_pp_data(
  n = 4,
  n0 = 4,
  n1 = 4,
  delta = 0.5,
  sigma_0 = 1,
  sigma_1 = 2,
  rho = 0.5,
  tidy = TRUE,
  seed = 1234
)

Arguments

n

number of paired observations

n0

number of unpaired observations in the pre-group

n1

number of unpaired observations in the post-group

delta

effect size

sigma_0

standard deviation of pre-treatment measurements

sigma_1

standard deviation of post-treatment measurements

rho

correlation between pre- and post- treatment measurements

tidy

whether to return the simulated data in tidy format

seed

seed passed to set.seed prior to simulation


HorridTom/meancomppp documentation built on Nov. 22, 2019, 12:02 a.m.