estimate_mv_shape_rate {simBKMRdata}R Documentation

Helper function to estimate shape, rate, and correlation parameters for observations within a group

Description

Helper function to estimate shape, rate, and correlation parameters for observations within a group

Usage

estimate_mv_shape_rate(x_df, using = c("MoM", "gMLE"))

Arguments

x_df

A numeric data frame with observations from ONE group

using

which method will be used to estimate the multivariate Gamma shape and rate parameters. Defaults to "MoM" (method of moments, which was used in the author's paper), or "gMLE" (maximum likelihood estimates from the Generalized Gamma distribution without bias correction).

Value

A list of estimated parameters for Multivariate Gamma distribution (sample size, sample mean, sample correlation matrix sampCorr_mat, sample shape vector alpha, sample rate vector beta)

Examples

myData <- data.frame(
  VALUE1 = c(2.3, 2.7, 5),
  VALUE2 = c(4.5, 4.2, 9)
)
estimate_mv_shape_rate(myData)

[Package simBKMRdata version 0.2.1 Index]