Skip to contents

A class for Gaussian Robust Mixture Prior models using RBesT for inference.

Details

This class represents a Gaussian Robust Mixture Prior model. It inherits from the Model class. Inference is performed using RBesT.

This class extends the Model_RBesT class and provides methods for initializing the model, updating priors, calculating posterior moments, and converting distributions to RBesT format.

Super classes

Model -> Model_RBesT -> GaussianRMP_RBesT

Public fields

w

The weight of the prior distribution.

vague_prior_mean

The mean of the vague prior distribution.

vague_prior_variance

The variance of the vague prior distribution.

info_prior_mean

The mean of the informative prior distribution.

info_prior_variance

The variance of the informative prior distribution.

wpost

The weight of the posterior distribution.

vague_posterior_mean

The mean of the vague posterior distribution.

info_posterior_mean

The mean of the informative posterior distribution.

vague_posterior_variance

The variance of the vague posterior distribution.

info_posterior_variance

The variance of the informative posterior distribution.

method

Method name

Methods

Inherited methods


GaussianRMP_RBesT$new()

Initialize a new GaussianRMP_RBesT object.

Usage

Arguments

prior

A list containing prior information for the analysis.


GaussianRMP_RBesT$empirical_bayes_update()

Update the vague prior variance based on empirical Bayes approach.

Usage

GaussianRMP_RBesT$empirical_bayes_update(target_data)

Arguments

target_data

A list containing the target data for the analysis.


GaussianRMP_RBesT$posterior_moments()

Calculate the posterior moments based on the target data.

Usage

GaussianRMP_RBesT$posterior_moments(target_data)

Arguments

target_data

A list containing the target data for the analysis.


GaussianRMP_RBesT$prior_to_RBesT()

Convert the prior distribution to the RBesT format.

Usage

GaussianRMP_RBesT$prior_to_RBesT(...)

Arguments

...

Additional arguments.


GaussianRMP_RBesT$posterior_to_RBesT()

Convert the posterior distribution to the RBesT format.

Usage

GaussianRMP_RBesT$posterior_to_RBesT(target_data, ...)

Arguments

target_data

Target data for the analysis.

...

Additional arguments.


GaussianRMP_RBesT$vectorised_prior_components()

Prior mixture components for each replicate.

Under empirical Bayes the vague component's variance is re-derived from each replicate, matching empirical_bayes_update(), so the prior varies by row. Otherwise the same two components serve every replicate.

A degenerate weight collapses the mixture to a single component, exactly as the scalar path does to work around an RBesT ELIR bug.

Usage

GaussianRMP_RBesT$vectorised_prior_components(target_data, samples)

Arguments

target_data

Target data for the analysis.

samples

Data frame of generated replicates.

Returns

A list with weights, means and sds.


GaussianRMP_RBesT$vectorised_posterior_parameters()

Posterior parameters reported by the vectorised path.

The scalar path records the posterior weight on the informative component, which is 0 or 1 when the mixture has collapsed.

Usage

GaussianRMP_RBesT$vectorised_posterior_parameters(posterior)

Arguments

posterior

Posterior mixture from normal_mixture_posterior().

Returns

A data frame with one prior_weight column.


GaussianRMP_RBesT$summary_rows()

Rows of the model summary, with the prior weight and the moments of the two posterior components. The posterior weight is among the posterior_parameters rows.

Usage

GaussianRMP_RBesT$summary_rows()

Returns

A data frame with columns Attribute and Value.


GaussianRMP_RBesT$clone()

The objects of this class are cloneable with this method.

Usage

GaussianRMP_RBesT$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.