estimate_empirical_prior: Calculate empirical priors based on the relationships in the...

View source: R/bmediatR.R

estimate_empirical_priorR Documentation

Calculate empirical priors based on the relationships in the data between X, M, and y

Description

This function estimates log prior model probabilities that maximize the marginal likelihoods of the data from a previous run of bmediatR().

Usage

estimate_empirical_prior(ln_prob_data, model = c("complete", "partial"))

Arguments

ln_prob_data

Marginal likelihoods from bmediatR fit.

model

DEFAULT: "complete". If "complete", the marginal likelihoods evaluating the effects of X on M and Y. If "partial" is specified, the effects of X on M and Y are fixed as present. A "reactive" mode is currently not supported because of the challenge in distinguishing the directionality of a relationship.

Examples

estimate_empirical_prior()

wesleycrouse/bmediatR documentation built on April 28, 2023, 4:01 p.m.