Learn R Programming

qbrms (version 1.0.1)

p_direction: Probability of Direction (pd)

Description

Estimate the probability that a parameter is strictly positive (or strictly negative) under the posterior, based on simulated draws from a qbrms_fit.

Usage

p_direction(object, parameters = NULL, nsim = 4000, null = 0)

Value

A data frame of class qbrms_p_direction.

Arguments

object

A qbrms_fit object.

parameters

Optional character vector of parameter names. If NULL, all fixed-effect coefficients are used.

nsim

Number of draws to simulate from the fitted summary.

null

Numeric value defining the reference for direction (default 0).