default_times | R Documentation |
Calculate the default initial treatment time and follow-up time that are used to define and estimate the between-case standardized mean differences for multiple baseline designs and variations.
default_times(
design,
case,
phase,
session,
cluster = NULL,
series = NULL,
treatment_name = NULL,
data = NULL
)
design |
Character string to specify whether data comes from a treatment
reversal ( |
case |
vector of case indicators or name of a character or factor vector
within |
phase |
vector of treatment indicators or name of a character or factor
vector within |
session |
vector of measurement occasions or name of numeric vector
within |
cluster |
(Optional) vector of cluster indicators or name of a character
or factor vector within |
series |
(Optional) vector of series indicators or name of a character
or factor vector within |
treatment_name |
(Optional) character string corresponding to the name of the treatment phase. |
data |
(Optional) dataset to use for analysis. Must be a
|
A list of time range, default initial treatment time, and default follow-up time.
If treatment_name is left null, it will choose the second level of the phase variable to be the treatment phase.
data(Laski)
default_times(design = "MBP",
case = case, phase = treatment, session = time,
data = Laski)
data(Thiemann2001)
default_times(design = "RMBB",
case = case, series = series,
phase = treatment, session = time,
data = Thiemann2001)
data(Bryant2018)
default_times(design = "CMB",
cluster = group, case = case,
phase = treatment, session = session,
data = Bryant2018)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.