fun_estimate_Dirichlet_from_single_source: Estimate Dirichlet parameter from a dataframe using ML or...

Description Usage Arguments Value

View source: R/fun_dirichlet_MLE.R

Description

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

Usage

1
2
3
4
5
6
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 θ, but not optimal)

...

additional parameters to the estimation method

Value

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


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