estimate_by_post_mean: Estimate alpha of LCM by post mean

View source: R/fit_lcm.R

estimate_by_post_meanR Documentation

Estimate alpha of LCM by post mean

Description

estimate_by_post_mean is function to estimate alpha and logBF

Usage

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.


ykunisato/lcmr documentation built on Nov. 28, 2024, 2:40 p.m.