estimate_by_post_mean is function to estimate alpha and logBF

estimate_by_post_mean(data, model, opts, alpha)

Arguments

data

data from fit_asl or fit_asl_parallel

model

1 = latent cause model, 2 = latent cause modulated RW model

opts

(optional) structure defining ASL options

alpha

vector of alpha

Value

df data frame containing post_mean_alpha(posterior mean alpha), logBF(log Bayes factor for the alpha>=0 model relative to the alpha=0 model), loglikelihood and probability each alpha.