## Create a example scdf:
des <- design(
n = 150,
phase_design = list(A1 = 10, B1 = 10, A2 = 10, B2 = 10, C = 10),
level = list(B1 = 1, A2 = 0, B2 = 1, C = 1),
rtt = 0.7,
random_start_value = TRUE
)
study <- random_scdf(des)
## Standard BC-SMD return:
between_smd(study)
## Specify the model and provide an hplm object:
model <- hplm(study, contrast_level = "preceding", slope = FALSE, trend = FALSE)
between_smd(model)
## excluding the residuals gives a more accruate estimation:
between_smd(model, include_residuals = FALSE)
Run the code above in your browser using DataLab