Learn R Programming

EMOTIONS (version 1.0)

BMAweight_gamma: Estimate normalized model weights using an Expectation–Maximization (EM) algorithm with a gamma distribution

Description

Estimate normalized model weights using an Expectation–Maximization (EM) algorithm with a gamma distribution

Usage

BMAweight_gamma(converged_models, x, trait)

Value

A vector containing the normalized model weights based on the Bayesian Model Averaging (BMA) approach proposed by Duan et al. (2006), adapted to use a gamma distribution

Arguments

converged_models

A list containing the fitted models for the individual

x

A data frame containing the daily milking records for the individual

trait

The name of the column containing daily milking records