Assume that data is \(X ~ Dir(\theta)\) iid. This function estimates \(\theta\).

fun_estimate_Dirichlet_from_single_source(
  df,
  name_param = "theta",
  use = "ML",
  ...
)

Arguments

df

the dataframe, must contain only the samples

name_param

name of output parameter (default: 'theta')

use

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

...

additional parameters to the estimation method

Value

a dataframe (tibble) with the columns named as the Dirichlet parameter