Function to extract the posterior means of the parameters of interest from a lddmm fit object.
extract_post_mean(data, fit, par = c("drift", "boundary"))Matrix with the following columns:
subject: participant labels
block: training blocks
par_s_d, ...: posterior means for the requested parameters
dataframe with the following columns:
subject: vector of size n containing the participant labels
block: vector of size n containing the training blocks (longitudinal units)
s: vector of size n containing the stimuli
d: vector of size n containing the decisions
r_time: vector of size n containing the response times
cens: vector of size n containing the censoring indicators (1 censored, 0 non censored)
fit from the lddmm function
parameter to output ('drift', or 'boundary')