Constrained longitudinal data analysis (cLDA) is a type of analysis where all treatment groups are pooled together at baseline. cLDA may result in more precise estimates when the time variable has a baseline level and the baseline outcomes are recorded before randomization in a clinical trial.
As noted in https://github.com/openpharma/brms.mmrm/discussions/112, cLDA is hard for discrete time models like MMRMs. It really requires taking manual control of the model matrix. Fortunately, that's exactly what informative prior archetypes already do.
An example, take a simulated dataset with 2 groups and 2 time points.
This is what the treatment effect archetype normally looks like.
summary(brm_archetype_effects(data))
#> # This is the "effects" informative prior archetype in brms.mmrm.
#> # The following equations show the relationships between the
#> # marginal means (left-hand side) and fixed effect parameters
#> # (right-hand side).
#> #
#> # group_1:time_1 = x_group_1_time_1
#> # group_1:time_2 = x_group_1_time_2
#> # group_2:time_1 = x_group_1_time_1 + x_group_2_time_1
#> # group_2:time_2 = x_group_1_time_2 + x_group_2_time_2
If we apply the cLDA constraint, then group_1:time_1 and group_2:time_1 are pooled.
summary(brm_archetype_effects(data, clda = TRUE))
# This is the "effects" informative prior archetype in brms.mmrm.
# The following equations show the relationships between the
# marginal means (left-hand side) and fixed effect parameters
# (right-hand side).
#
# group_1:time_1 = x_group_1_time_1
# group_1:time_2 = x_group_1_time_2
# group_2:time_1 = x_group_1_time_1
# group_2:time_2 = x_group_1_time_2 + x_group_2_time_2
Other remarks:
In the presence of a subgroup, cLDA happens within each subgroup level so different subgroups have different baselines.
Not all archetypes can support cLDA. For example, if we were to apply cLDA to brm_archetype_average_cells(), some parameters would no longer be averages of others. Likewise for brm_archetype_average_effects(). This PR adds cLDA support for brm_archetype_cells(), brm_archetype_effects(), brm_archetype_successive_cells(), and brm_archetype_successive_effects().
Constrained longitudinal data analysis (cLDA) is a type of analysis where all treatment groups are pooled together at baseline. cLDA may result in more precise estimates when the time variable has a baseline level and the baseline outcomes are recorded before randomization in a clinical trial.
As noted in https://github.com/openpharma/brms.mmrm/discussions/112, cLDA is hard for discrete time models like MMRMs. It really requires taking manual control of the model matrix. Fortunately, that's exactly what informative prior archetypes already do.
An example, take a simulated dataset with 2 groups and 2 time points.
This is what the treatment effect archetype normally looks like.
If we apply the cLDA constraint, then
group_1:time_1
andgroup_2:time_1
are pooled.Other remarks:
brm_archetype_average_cells()
, some parameters would no longer be averages of others. Likewise forbrm_archetype_average_effects()
. This PR adds cLDA support forbrm_archetype_cells()
,brm_archetype_effects()
,brm_archetype_successive_cells()
, andbrm_archetype_successive_effects()
.