Build the per-patient longitudinal design matrices
Source:R/conditionalDesign.R
build_conditional_design.RdShared helper for conditionalYT and conditionalYDT:
constructs the longitudinal outcome matrix, fixed-effect parameter matrix,
and random-effect variance-covariance pieces used by the conditional
density quadratic form, for a single patient.
Usage
build_conditional_design(
rep_num_i_list,
data_num_i_list,
lfit,
Sigma,
sigma.longitudinal,
time_variable,
n_longitudinal,
long_sub_random
)Value
A list with longitudinal_all_matrix, parameter_matrix,
and cov_fac, the patient's factored covariance from
cov_factor().