fun_estimate_Dirichlet_from_samples: Estimate Dirichlet parameters for samples from multiple...

Description Usage Arguments Details Value

View source: R/fun_dirichlet_MLE.R

Description

Estimate MLE parameters from a dataframe of Dirichlet samples from different sources. The sources must be known.

Usage

1
fun_estimate_Dirichlet_from_samples(df, col_source = "source", ...)

Arguments

df

dataframe of Dirichlet samples with a source column

col_source

the column name containing the source column

...

Arguments passed on to fun_estimate_Dirichlet_from_single_source

name_param

name of output parameter (default: 'theta')

use

if 'ML', use MLE estimator, else the sample estimators (unbiased for θ, but not optimal)

Details

Suppose that rows in source i are X ~ Dir(θ_i) iid. This function estimates θ_i.

Value

a tibble containing the Dirichlet parameter estimates for each source


lgaborini/rstanBF documentation built on March 10, 2021, 1:12 p.m.